Ubuntu :: Code In Emacs File To Start Emacs Maximized?
May 17, 2010
I was using the following code in my .emacs file to start emacs maximized:
Quote:
(defun toggle-fullscreen ()
(interactive)
(x-send-client-message nil 0 nil "_NET_WM_STATE" 32
'(2 "_NET_WM_STATE_MAXIMIZED_VERT" 0))
(x-send-client-message nil 0 nil "_NET_WM_STATE" 32
[Code]...
View 2 Replies
ADVERTISEMENT
Apr 20, 2010
Every time i open Emacs window,it opens with a width=(monitor-width)/2;height=(3/4)*(monitor-height)I click the maximized icon every time.How can i set the maximized emacs window as default?
View 4 Replies
View Related
Jan 13, 2010
I usually develop python code with emacs, emacs being in python code. On my desktop a version is installed and/or configured that way, so I easily can choose a region in the code and simply click on a menu option to comment out this block of code (i.e. at the begin of each line in the selected code two '##' are put). That is very convenient.
However, on my Laptop, running F12 and emacs 23.1.1, this menu option is missing! I searched within google and found the hint that by pressing 'C-c #' I also can comment out a selected region. But on my emacs it says: 'C-c # is undefined'. Am I missing something? Anyone any idea how to fix/install/update/solve this problem, so I can easily choose a couple of python lines and comment them out?
View 3 Replies
View Related
Oct 7, 2010
I'm running GNU Emacs 23.1.1 on "Ubuntu 10.04.1 LTS" and any search I perform using the built-in M-x rgrep on the standard Linux kernel source code (vanilla) ends prematurely with the following error printed to the emacs echo area:Grep exited abnormally with code 123.I have been seeing it for a while on Redhat systems as well, and with other (large) code bases.
View 2 Replies
View Related
May 14, 2010
I do not know what makes this error when I start emacs from the terminal** (emacs:30705): CRITICAL **: murrine_style_draw_box: assertion `height >= -1' failedDoes anyone know how to get rid of this error ?
View 3 Replies
View Related
Nov 9, 2010
I can run emacs just fine as "me", but it consistently fails after a su:
Code:
#emacs
**
[code]....
View 7 Replies
View Related
Mar 23, 2011
I'm new to the emacs thingy. i just moved back to ubuntu.i have found out how to have emacs load the .el file from the .emacs file but i cant seem to use the addon.http://blogs.unity3d.com/2010/01/15/...ty-javascript/that is the addon i am trying to use.this is my .emacs file:
(add-to-list 'load-path "~/.emacs.d")
;; UnityJS mode for emacs
(autoload 'unityjs-mode "unityjs-mode" "Major mode for editing Unity Javascript code." t)
[code]....
View 2 Replies
View Related
Aug 25, 2010
When clicking on a file in a webpage such as a .tex file the default viewer is mousepad. I search for Emacs to open it, but browsing gets me no where. How do I find it or set it so that I can open directly files in it without explicitly saving them
View 2 Replies
View Related
Aug 26, 2010
I am using xubuntu and there are a few types of files on website that instead of downloading and saving and then opening with emacs, I would rather when the radio button choice comes up say open with emacs. I am using xubuntu with xfce, and there is no line for a command to be entered as some ubuntu editions have. In the choice of changing the opening program from mousepad to something else, it says search and allows to navigate to find a program, but I cant find emacs anywhere not in etc/ or elsewhere. So where is its executable to direct the program chooser to?
View 1 Replies
View Related
Oct 17, 2010
i have just installed the fedora 13 and emacs, after intalling the emacs when i try to load it i get the next message [root@localhost Eli]# emacs emacs: Cannot open termcap database file
View 3 Replies
View Related
Apr 21, 2011
I've noticed that emacs does not notice when an open file is changed on disk (unlike ,say, geany). Is there any way of making it watch for changes of files on disk?
View 1 Replies
View Related
Nov 16, 2010
I split vertically Emacs window to 2 frames. In the left frame I edit the code, in the right frame I navigate through files and directories in Dired mode.It is possible to tell Emacs that anytime I choose the file and press Enter in the right frame, the file will be opened in the left frame?I am almost sure that there is a solution for this but I cannot figure out how to do it, and I was not successful for a moment to google for a correct solution
View 1 Replies
View Related
Mar 20, 2010
How can I tell emacs that a file type that it doesn't recognise should have the same syntax highlighting as one it does?
Xfig produces .pstex files which I want to be highlighted like .ps/.eps
View 2 Replies
View Related
Jul 2, 2010
I'm using andLinux and for whatever reason, emacs seems to think that the file I'm editing has been changed every time I try to edit/save and keeps reprompting me. Very annoying. Is there a way to make emacs stop checking the file on the disk?
View 1 Replies
View Related
Apr 28, 2011
When emacs freezes doing a DNS lookup, that makes it rather hard to fix a network configuration file. Why does it need to do that?
View 8 Replies
View Related
Oct 14, 2010
Since upgrading to Ubuntu 10.10 I have been unable to use Emacs23. Upon starting Emacs, it immediately causes X to crash and I am returned to the login screen.I thought of looking for a log file and providing it here or in a Launchpad post to shed some light on the problem, but I don't know which log I could provide (if there is one).
View 4 Replies
View Related
Dec 11, 2010
After I installed GNU Emacs 23 to my Ubuntu system, every time I invoke the "emacs file" command, it launches Emacs.Because opening up Emacs takes time on my PC's last century hardware, and it consumes quite a big chunk of memory too. I wonder if I can still do some quick text editing using Terminal's emacs mode?
View 1 Replies
View Related
Jun 30, 2011
I am using emacs at work, and when I am home I use ssh through the terminal to connect to my computer at work. However starting emacs through ssh only gives me emacs in the terminal. As it is a bit awkward to work with I would like to open the GUI version of emacs through ssh. I tried installing tramp, but that did not seem to have any effect.
View 7 Replies
View Related
Oct 26, 2010
I like emacs very much, and especially like using C-M-v and C-M-S-V to scroll other window up and down. It is cool, especially when I am coding and referring documents.The problem is, using C-M-v to scroll down is OK in both terminal and X,but using C-M-S-V to scroll up just works well in X, if I use it in terminal, it behaves scrolling down too.
View 2 Replies
View Related
Nov 6, 2010
i intend to integrate with speedbar in the emacs frame. but the it seems didn't work correctly follow my mind, i have to press C-x 1 to solve the mistake when emacs startup!!!
screenshot for emacs starup:
and after i press C-x 1
what should i write in .emacs? and i had wrote these lines to ~/.emacs:
;speedbar intergration
(require 'tramp)
(defconst my-junk-buffer-name "Junk")
(setq junk-buffer (get-buffer-create my-junk-buffer-name)
)
[Code]....
View 5 Replies
View Related
May 3, 2011
I recently clean installed Ubuntu 10.10 and copied over my last home directory from 11.04, after having upgraded from 10.10. Maybe something went wrong in this transition which is making this happen. Basically, I have a macbook pro with Ubuntu 10.10 64 bit and have the latest nvidia driver. I'm sshing using -X and -A. I try "emacs &" and Ubuntu logs me out immediately. Occasionally, it will simply log me out on startup although I haven't seen this happen in the last few logins. I also just tried running kdiff3. It starts to load the window and it does the same as emacs: it logs me out of Ubuntu.
View 3 Replies
View Related
May 6, 2011
I've recently started using Emacs and find switching between different buffers using the menu to be inconvenient. Is there any mode or trick that allows functionalitry like Alt-tab?
View 3 Replies
View Related
Jun 21, 2011
I successfully installed Natty on my PC and everything works great. Or nearly! If I connect to a server via ssh and try to open an emacs window on the server: no fonts are visualized (only empty boxes) and I get the following warnings:
Warning: Cannot convert string "-*-courier-medium-r-*-*-*-120-*-*-*-*-iso8859-*" to type FontStruct
Warning: Cannot convert string "-*-helvetica-medium-r-*--*-120-*-*-*-*-iso8859-1" to type FontStruct
- running emacs with the "no window" option -nw works fine (but I don't like working with emacs in the terminal window).
[Code]...
View 4 Replies
View Related
Dec 6, 2009
I am sufferihng from two problems running emacs in Fedora 12: Firstly, whether I am logged in as root or not, starting emacs from an xterm gives me the following messages: Finished loading /usr/share/emacs/site-lisp/egg/leim-list.el and load others... Loading /usr/share/emacs/23.1/leim/leim-list.el (source)... Loading /usr/share/emacs/23.1/leim/leim-list.el (source)...done Not much of a problem, but I would like to know how to prevent this.
However, if I am logged in as root, or if I use 'su -c emacs' I get an additional message and then emacs takes a long time to start up. The additional message is: socket(): Address family not supported by protocol I did not get this in Fedora 10, and it is not so much the message but more the delay of a few seconds in starting up which is annoying me.
View 3 Replies
View Related
Jul 29, 2011
I tried Google search and reading man page options for emacs but couldn't find... If I run emacs in GUI, it starts GUI for emacs. I want to run it in CLI in rxvt. How do I do it?
View 1 Replies
View Related
Jun 26, 2009
All I want is that when I press the "TAB" key, I will ALWAYS get an actual TAB character--not spaces, not relative indenting with tabs mixed with spaces, just one singlel TAB character.
I tried every possible option I could find, but nothing works. I absolutely despise the relative indenting, and I haven't found a way to turn it off...
View 1 Replies
View Related
Jul 21, 2010
I have looked in all the usual places but cannot find emacs or xemacs... Does this mean I have to install it manually??
View 5 Replies
View Related
Jan 9, 2010
I just updated to emacs23 from emacs22 (sudo apt-get install emacs2). I find that I now have a problem with org mode structured lists not appearing. A single asteriks on a line by itself no longer appears highlighted and no longer collapses and expands using the tab key.
View 2 Replies
View Related
Jan 12, 2010
I'm putty'd into an Ubuntu server box and have EDITOR=emacs set. However whenever I run crontab -e my shell locks up.
I can use emacs normally by typing emacs from the command line, so I'm not sure what problem is. If I set EDITOR=vi I can run crontab -e and it opens in vi
View 2 Replies
View Related
Feb 22, 2010
I turn on my laptop running 64-bit karmic (if that helps anyone), open GNU Emacs 23.1.1 with the org files I've been working on, and for some reason it is not recognising standard key bindings, for the first time ever, with no reason I can conceive. What does "M-kp-enter is undefined" mean when it seemed well defined not long before? It seems using Esc-enter still works.. can anyone suggest if there are any config files I might need to edit, or what else could have gone wrong?
View 1 Replies
View Related