emacs

Making sense out of Emacs completion mode choices.

There appears to be many alternative Emacs auto completion mechanisms. Without an exhaustive search, the following come to mind: ido, auto-complete, icicles, in buffer completion, minibuffer completion and standard out of the box completion. And then there is code completion. Lots of it. And much of it language dependent. It would be...

Emacs How to redefine Shift-R for expected use

I've checked my elisp files to make sure that I do not have any bindings that contain Shift+R (and I have not found any). I expect SHIFT+R to print an uppercase character, but instead I get R R undefined inside of the Emacs command line. This is only in C/C++ major modes. Any suggestions? Update: Describing the key shows that it is und...

How to make Emacs (without GUI) differentiate between Ctrl+Shift+S and Ctrl+S?

I'm trying to teach Emacs standard shortcut keys. I use emacs23-nox version from Debian, often through SSH connection. One of those is Ctrl+Shift+S for SaveAs. The relevant part of configuration looks like this: (global-set-key (kbd "C-S") 'write-file) (global-set-key (kbd "C-s") 'save-buffer) but causes either both Ctrl+Shif...

change emacs ruby-mode indent to 4 spaces

From a previous post I got Ruby mode working in emacs. This is working great. http://stackoverflow.com/questions/2078079/setting-up-emacs-file-for-mac-ruby-development Our company uses 4 spaces for indents though instead of the default 2. I am having difficulty getting this to work. Here is my .emacs file (add-to-list 'load-pat...

Emacs custom command line argument

From the documentation I can see I can access command line arguments (command-line-args). I'd like to add my own arguments but Emacs complains at start up that it doesn't recognize them. E.g. emacs -my_argument I get: command-line-1: Unknown option `-my_argument' What's a proper way to define my custom arguments and provide info...

Hook for tab completion in emacs (interactive) file input?

In emacs, the following will define a function that, when called interactively, will ask the user for a filename: (defun do-something (filename ) (interactive "FFilename: ") ... ) When the user is entering a filename, they can use tab-completion, etc. Does anyone know if there are any hooks in that file-entry code? In particul...

emacs directory-local variable problem

I'm using a recent version of NTEmacs. I wrote a file named ".dir-locals.el" like following. ((nil . ((tab-width . 8) (fill-column . 70))) (c-mode . ((c-file-style . "GNU")))) and I opened a c file in the subdirectory, I got an error message : Directory-local variables error: (wrong-type-argument listp message) I ca...

How to setup Aquamacs for Clojure development?

I've tried to migrate to Emacs several times for Clojure development, following a variety of blogposts, screencast and tutorials, but somewhere along the way something always went wrong - keybindings that didn't work, incompatible versions, etc, and I found myself scrambling back to Vim. But I know I want Paredit and SLIME. So, I'm goin...

ispell in Emacs LaTeX mode

When I run Emacs command ispell-buffer on an Emacs buffer which is in the LaTeX mode, ispell checks spelling also inside math expressions. I'd very much like to disable this. Is there an easy way to do it? I've read about detex but detex does not seem to be integrated into Emacs. Thanks a lot!!! ...

configuring emacs for cmake

Hello, gcc 4.4.2 cmake 2.6 I have just started using cmake. Coming from writing my own Makefiles. However, I have this directory structure and using out-of-source build. To separate the source files from the build files. project src my_c_files.c CMakeLists.txt build Makefile Before I would write my o...

Check if a string is all-caps in Emacs lisp?

Hi, all. I was wondering if Emacs lisp had a built-in function for checking if a string is made entirely out of capitalized characters. Here is what I'm using right now: (setq capital-letters (string-to-list "ABCDEFGHIJKLMNOPQRSTUVWXYZ")) (defun chars-are-capitalized (list-of-characters) "Returns true if every character in a list of ...

In Emacs, how can I jump between functions in the current file?

I'd like to quickly move point to a function in my Emacs buffer. I'd like to run some function and get a prompt asking me for the function name, with completion provided for every function defined in the current buffer. I generally use etags to navigate around, but sometimes I'm looking for a framework method that's been overridden in ...

echo in inf-ruby

I am trying to get inf-ruby to work in Emacs. For the most part it works fine, except for the very annoying habit of echoing every input entered. Does anyone know what could be wrong? I am using Carbon Emacs on OSX 10.5 with the default Ruby 1.8.6. My irb version is 0.9.5 The odd bit is that inf-ruby worked perfectly one time I open...

Kill/Yank (cut/paste) in ZSH

I use zsh and have the Emacs keybindings set up for it. I'd love to have it replicate all my regular Emacs text manipulation commands. One which I miss is the Kill/Yank keys. It would be nice if I could select text (using C-SPC - this works) and then do something like a kill-region (C-w - This right now deletes the previous word). The ya...

Emacs users are unable to commit via bazaar to launchpad

All of the emacs users on our development server are unable to do a bazaar commit to our development branch on launchpad. They receive this message: bzr: ERROR: Cannot lock /.. /.bzr/checkout/dirstate: [Errno 13] Permission denied: u'/../.bzr/checkout/dirstate' I've double-checked all of the permissions and everyone has their keys se...

elisp function that returns the current file being interpreted.

Isn't there a function that returns the current file being interpreted? That is, if I call it in foo.el, it will return "foo.el"? The use case is in startup files. No, I don't want user-init-file, but it is analogous to that. Surely this has been asked before, but I cannot find the answer anywhere, huh... ...

Using shell versus eshell whenever an Emacs action needs to spawn a shell in a new buffer

I'm using Rinari for Rails development in Emacs. M-x shell will open a new buffer that is correctly PATH'd for my environment (zsh). M-x eshell uses all the incorrect PATH's and I haven't been able to get it to play nicely with anything. There's a function of Rinari that fires up an instance of a web server for the Rails app I'm editi...

Is there a solution to automatically synchronize Emacs org-mode with one of the web based todo services?

Org-mode is amazing. I like its power and simplicity. However, sometimes I need access to my tasks in places where I don't have the necessary setup. Is there a way to synchronize my org agenda with one of the better web based todo services like RTM, Toodledo or similar? It would be the best solution, because I'd run the sync process reg...

load template in emacs when creating new file

I have a template I use when creating a ruby script. Currently when I rename a copy of that template and load it in emacs and get to coding. I think emacs can load a template for me though. Ideally I could do this. Ctrl X Ctrl F to open a file. Type in name of file that doesn't exist (aka my new file). Emacs recognizes the file does...

Is JDEE worth using?

I see many nice feature of JDEE in Emacs. However installation seems to be a bit involved, especially in Windows so I want to see if others found it useful. I use Eclipse and NetBeans and there are some decent features to these products. However, I really like the idea of a scripted language like Lisp built into my IDE so I can change...