emacs

Emacs M-x commands for invoking "GUI-style" menus

Question: How could I find out the M-x equivalent commands for doing GUI-based operations in Emacs, in those cases where my Emacs-variant uses OS-specific desktop functionality? Background: Conventional understanding states that everything in Emacs is a command, and that commands can be invoked via M-x, as long as you know the name of t...

Saving Window Configurations in Emacs

I'm wondering if there's a way to save window configurations across emacs sessions. I know desktop-save is fantastic for preserving buffers and whatnot and the emacs manual demonstrates storing a window configuration into a register but this doesn't persist across sessions. Of course this doesn't seem like it would be too hard to imple...

Configure Emacs FlyMake to use Rakefile as well as Makefile

I have been learning to use Emacs for a little while now. So far liking it a lot. My problem is that for little C codes I prefer using Rake instead of Make. However flymake does not seem to want anything else than Make. As it complains that it can not find Makefile. From the command line Rake is used in the same way as Make so I was won...

(Emacs (and Vim)) vs JEdit: Which ones support multiple simultaneous text insertion points?

Background: JEdit (and some other text editors as well) support a feature called Multiple simultaneous text insertion points. (at least that's what I'm calling it here). To understand what this means, take a look at the link. Out of all the features in use in modern text editors, initial research seems to indicate that this is one fea...

Which functions are missing in existing Emacs modules for work with git?

What do you think - which functions should be implemented to make work with Git from Emacs more comfortable? Which functions are missing in magit/git.el/egg/git-emacs/...? ...

How do I get a scheme interpreter working inside Emacs?

I'm going through SICP and I'd like to have an interpreter analogous to the interactive Python interpreter to play around in while I'm watching the lectures and reading the book. Furthermore, I'd like this interpreter to run inside Emacs so I can jump back and forth between files of scheme code and the interactive interpreter and so fort...

How to save all functions I entered in LispBox/Slime?

Situation: I entered several functions while working with REPL in Emacs. Problem: There is junk like "; Evaluation aborted" when I'm simply saving buffer. What I want: clear descriptions of all the functions I entered in their latest revision. Can I do that? Thanks. ...

Is there a Perl equivalent for Emacs' ido-completion?

I've built a number of work-specific helper functions that could be useful for other members of my teambut I've written them all in Emacs' Elisp. And getting them to convert from Notepad++ is NOT going to happen. So, I'm thinking convert the functions to Perl. No problem. Except I use ido-completion all the time to limit responses: ...

generating a code from emacs

How can I write the following code quickly in emacs? \newcommand{\cA}{\mathcal A} \newcommand{\cB}{\mathcal B} \newcommand{\cC}{\mathcal C} ... ... \newcommand{\cY}{\mathcal Y} \newcommand{\cZ}{\mathcal Z} Is there a way faster than writing A B C D . . . Y Z and then doing macro on each line? (changing A to \newcommand{\cA}{\mathc...

must have emacs extentions?

I'm trying out http://emacspeak.sourceforge.net now that I have it running on windows. I'd like to use emacs as more then a plain text editor and was wondering what extentions/packages everyone can't live with out? The languages I use the most are Perl, Java, and some C/C++. ...

Emacs and slime stopped cooperating for me

I'm trying to use slime from CVS (2009-01-05) but keep getting this error: LOAD: A file with name /usr/share/common-lisp/source/slime/swank-loader.lisp does not exist I've stripped my .emacs down to just: (setq inferior-lisp-program "/usr/bin/clisp") (add-to-list 'load-path "/home/ssm/lisp/slime/") (require 'slime) (sli...

Boustrophedon Text Editing?

Hello, I would like to edit text in boustrophedon in emacs. For those of you who don't know boustrophedon text direction goes "like an ox turns" in a field or like a printer inkjet. For the same reasons this is efficient on a farm or in a printer this text is very efficient to read once you get used to it (which doesn't take too long). ...

Starting any Emacs buffer with a .c extension with a template

I write a lot of short throwaway programs, and one of the things I find myself doing repeatedly is typing out code like #include <stdio.h> #include <stdlib.h> int main(void){ } To save some tendon hits I was wondering if it was possible to insert a simple template above whenever I create a buffer with the extension of .c. ...

Emacs mode to edit JSON

Does anybody know a good Emacs mode to edit JSON? An app I am working on uses a JSON based communication protocol and having the data nicely indented and syntax-highlighted would help me a lot in the process of figuring it out. ...

How to do use C-x k to kill an Emacs buffer opened in server mode?

I use windows batch file to open files in an already-running instance of Emacs using emacsclientw.exe. However, any file opened that way is opened in server mode, which means that I have to use C-x # to kill it, instead of the usual C-x k. How do I change this behavior? ...

blogging from within emacs

Hi all, I would like to know what packages and tools to use to write blogs from within emacs. I mean packages to write and publish. I 've seen a demo of that in textmate : http://blog.macromates.com/2006/blogging-from-textmate/ Is it possible to do the same in emacs? Thank you very much. Edit: I found a package in google code that s...

Emacs : how to compile (run make) without pressing enter for the compile command query?

Hi, with (x)emacs, how could I run the 'compile' command without separately pressing enter to accept the default command? (I can bind the 'compile' to a key but I'd like the whole thing to happen without separate pressing of enter) Of course, similar behaviour with some else command would also be ok. ...

Emacs Command to Delete Up to Non-Whitespace Character

I often want to make a multiline function call and reduce it down to one line. For example, convert... function_call( 'first_arg', 'second') to function_call('first_arg', 'second') Does emacs have some commands to help with this. Specifically, is there a command that will delete all whitespace from the point to the first ...

Emacs mouse scrolling

When I scroll in Emacs using mouse wheel, it scrolls 5 lines at a time, which, I think, is way too much - where do I set a new value? Also, when I scroll in Emacs with a mouse (either wheel or scrollbar), the cursor jumps to stay inside the visible screen area - is there a way to override that behavior, making it staying on the line it ...

How to accomplish equivalent of Vim's Ctrl-n in GNU Emacs?

Vim's Ctrl-n generally works like this: I type few letters, hit Ctrl-n, and Vim provides me with completions based on words in my all opened buffers. Solution for Emacs doesn't have to be identical. I mainly use it like this: declare variable, then use it in later code. But I like the lightweight approach of not parsing the source code....