emacs

Session management in emacs using Desktop library

For session management with emacs, I appended the following lines to my .emacs file (load "desktop") (desktop-load-default) (desktop-read) I was able to save the session using M-x desktop-save. But after exiting emacs, I am unable to recover the earlier saved session. I did start emacs in the same directory as that during "desktop-sav...

How to show function prototype in Emacs?

While in C-mode I can jump to a function using M-. on the function name....is there a way i can simply display the function prototype? (preferably as a tooltip or so) I often struggle to remember the exact order and types required by a given function. ...

What are the compelling reasons to upgrade to emacs 23.1?

I saw the the news that emacs 23.1 was released. For a programmer, What are the big reasons to upgrade? I'm currently on 22.2. None of the features listed really seem like must-haves for me. The most immediately interesting bit is that nXML is now integrated. I already have it though. But I have to admit I don't know what is real...

Would you recommend vim/emacs for beginner programmers?

For someone just starting to program, would you recommend using vim/emacs, or should you use some IDE? Like are vim/emacs better suited for more advanced users than for beginners? I'm just wondering because I'm trying to get some of my friends to program. ...

Preferred JavaScript mode for emacs? Is it js2-mode from Yegge?

There are a couple JavaScript modes out there: js2-mode by Steve Yegge javascript.el by Karl Landström. espresso? Something else? Does anyone have a recommendation on which to use? ...

Code folding in Emacs

An excellent feature of Dreamweaver is code folding of any lines of text -- recursively! It's fantastic, I can fold any text or code, regardless of language. I work with existing systems; I don't edit well-written code or code in one language etc. mostly HTML mixed with god-knows-what. Folding lines makes understanding a lot easier and ...

How do I close an automatically opened window in Emacs?

This is probably a very naive Emacs question - I'm new to it. When I'm evaluating a lisp expression, if there's an error the debugger automatically comes up in another window. If I have *scratch* and *info* open (the former for trying out lisp and the latter for reading about it), then the debugger opens up in the window that *info* was...

One key emacs LaTeX compilation?

Hi. Are there any emacs guru out there who can tell me how to bind C-B to Auctex's LaTeX compilation? This is, instead of C-c C-c RET. I'm on Ubuntu. ...

How to write a global save hook for Emacs?

I usually have to deal with a lot of people sending me Windows files and I'm tired of having to convert them by hand, usually by doing: C-x RET f unix RET Is there any way to add a global hook (for all modes) to automatically do this on saves? ...

How do I byte-compile everything in my .emacs.d directory?

I have decided to check out Emacs, and I liked it very much. Now, I'm using the Emacs Starter Kit, which sort of provides better defaults and some nice customizations to default install of Emacs. I have customized it a little, added some stuff like yasnippet, color-themes, unbound, and other stuff. I've set up a github repository where ...

How to make part of a word bold in org-mode

How should i make a part of my word like, =Class=es or /Method/s in org-mode? It seems org-mode markup syntax works on complete words only :-( ...

emacs as IDE: Handling a project directory?

Hello. I've always used emacs for small projects (and Visual Studio for large ones). I was wondering what the alternatives are for handling a directory structure within emacs, something like the solution explorer in VS. Thank you. ...

can I use two different lisp+slime/swanks from the same emacs?

can I use common lisp and Clojure from within emacs at the same time? I would like to have each lisp-REPL in its own buffer, and If i did this how could I controll which buffer sent its data to which lisp? ...

How to configure 'git diff' to use emacs diff

Hi, Is it possible to configure git diff to use emacs diff? If yes, can you please tell me how? Thank you. ...

Can I use ediff if I have a file and a diff, rather than two versions of the same file?

With tf.exe diff , I can get a diff. Can I use this with ediff to visualize the diff in emacs? I'm under the impression that ediff normally takes 2 or 3 files. I just have the one file, and a diff. ...

How can I save my mini-buffer history in Emacs?

Just like the question title says, I'd like to save, for instance, my find-file and Meta-X history in Emacs' mini-buffer so I can recall commands later in a different session. Is there a way to do this? ...

How to automatically save files on lose focus in Emacs.

Is it possible to configure Emacs, so that it saves all files when the emacs window loses focus? ...

emacs list-buffers behavior

In GNU emacs, every time I hit Ctrl-x Ctrl-b to see all of my buffers, the window is split to show the buffer list, or if I have my window already split in 2 (for instance, I will have a shell running in the lower window), the buffer list appears in the other window. My desired behavior is for the buffer list to appear in my active win...

emacs 23.1 windows find-grep

I installed the new release of emacs 23.1 and the very first difference I saw is that after M-x find-grep it takes 5-7 sec to show the standard command "find . -type f -print0 | xargs -0 -e grep -n ". In release notes for 23.1 there is something about "Smarter minibuffer completion". Can I disable this feature and return to the old imp...

Indenting CSS in emacs

So emacs's auto-indentation for CSS is driving me batty. Here is what I like CSS to look like: #foo ul.bar { .... } #foo ul.bar li { .... } #foo ul.bar li a { .... } This is what emacs gives me with its auto-indentation: #foo ul.bar { .... } #foo ul.bar li { .... } #foo ul....