emacs

Is there any way to get Ediff to not open its navigation interface in an external window?

Not being using Emacs all that long (v23, windows) and just discovered M-x ediff. Fantastic. Although I'm not to keen on the fact it opens its help/navigation in a separate frame/window, meaning that if I lose focus to that window, the single key shortcuts don't work. For example as soon as I press ? to expand the window, it shifts over...

Emacs text-mode highlighting

Is there a way to get a word to be rendered with a different face in text mode? ...

Emacs session / projects / window management

Hello, I am working with Ruby on Rails projects most of the time so I need a way to save projects and the state of the buffers/windows I am working on, mostly because I often find myself switching to a different project for a few minutes and then going back to the project I was working on. Desktop.el seems to be very close except for th...

How do I launch an editor from a shell script?

I would like my tcsh script to launch an editor (e.g., vi, emacs): #!/bin/tcsh vi my_file This starts up vi with my_file but first displays a warning "Vim: Warning: Output is not to a terminal" and my keystrokes don't appear on the screen. After I kill vi, my terminal window is messed up (no newlines), requiring a "reset". I tried "...

What is the scope of effort for making standard java-mode syntax highlighting language release dependent?

My itch to see the Emacs syntax highlighting handle generics more effectively is getting worse and worse with each new release of the Java language. I suspect adding customization support for the language level is a significant piece of programming effort. But it would still be interesting to hear someone knowledgeable expound at a fai...

pros and cons of various spell checking modes in emacs

I'm wondering if anyone could weigh in on pros and cons of different spelling modes for Emacs. Emacswiki-CategorySpelling mentions three modes for spell checking: Flyspell mode (default one) Speck mode (seems to be designed to be faster than flyspell) Wcheck mode. (designed to be general purpose) I'm also interested in which of ...

Get local cvs comment history when committing file/s in emacs

Hi, I often commit files with similar cvs comment but not in a single operation. I would like to able to bring up previous comments I've used in a previous commit when I am in the process of writing a comment in emacs. Meaning, from within the VC-log buffer. Is there a way to do this? Thanks ...

Carbon-emacs: re-enable hash key?

How can I re-enable the hash (#) key in carbon-emacs on the mac? I've tried everything I've come across in google and still can't get it working. My config file currently looks like this: (require 'redo+) (require 'mac-key-mode) (mac-key-mode 1) (setq default-input-method "MacOSX") (setq mac-command-modifier 'alt mac-option-modifier 'm...

Emacs: Tab completion of file name appends an extra i:\cygwin

I am facing some strange behavior with file-name completion in emacs. C-x C-f to find file opens up the minibuffer with i:/cygwin/home/rrajagop/StockScreener/working_copy/master_repo/stock_screener/. Hitting a TAB makes it i:/cygwini:/cygwin/home/rrajagop/StockScreener/working_copy/master_repo/stock_screener/. A couple of interesting thi...

In Emacs, how do I figure out which package is loading tramp?

I have a strange interaction with tramp and cygwin-mount (I think: http://stackoverflow.com/questions/1705802/emacs-tab-completion-of-file-name-appends-an-extra-i-cygwin). Because of this, I want to disable tramp. I'm unable to find anything in my .emacs which is loading tramp explicitly. I can see "Loading tramp..." when I hit a tab in ...

How do I make emacs display a multi-byte encoded file, properly? Is it mule?

When I open a multi-byte file, I get this: ...

eval during emacs lisp macro expansion

How can I fix the simple macro foo in (elisp)Eval During Expansion? None of the followings work: (defmacro foo1 (a) `(setq (eval ,a) t)) (defmacro foo2 (a) `(setq ,(eval a) t)) (defmacro foo3 (a) `(setq ,a t)) I really don't get what's said in (elisp)Eval During Expansion. I think if I got it, I'd have been able to fix the ma...

Custom Emacs key bindings are not working

The key bindings I've defined in my .emacs file aren't working. Here's the file: ;init modes (menu-bar-mode 0) (tool-bar-mode 0) (cua-mode) (column-number-mode) (fset 'perl-mode 'cperl-mode) (cperl-set-style PerlStyle) ;keymappings (global-set-key [f12] 'save-buffer) (global-set-key [S-f12] 'write-file) (global-set-key [f7] 'ispell) (g...

Tools for C code refactoring

What tools are there that supports refactoring C code (renaming variables, extracting methods, finding method references, ...) Preferably for a Linux environment, but Windows tools are ok too. If there's something available for emacs, even better! ...

In emacs how does the "hyperlink" in the *Help* buffer work?

I'm trying to figure out how the "hyperlink" works in the *Help* buffer (so that I can implement something similar in the output of M-x compile). Here is a more detailed description of the behaviour I want to imitate: M-x describe-function find-file opens up a *Help* buffer. The first line of this buffer (for me) shows: find-file is an i...

Emacs lisp mode for Go?

Is there a suitable Emacs lisp mode for Go? C mode doesn't work without semicolons. The best I have found is the JavaScript mode by Karl Landstrom, since JavaScript also doesn't require semicolons. ...

Convert Emacs macro into Elisp

Hi, Is there a way to convert an emacs macro into elisp, not like what M-x insert-kbd-macro does, the actual activity becoming elisp statements. Thanks for your help. ...

Given an emacs mode, how to find its keymap name?

What I do is C-u M-x apro-var RET isearch mode-map RET if I want to find out the name of the keymap for the isearch mode. Is there other ways? ...

Viewing delimited columns in emacs

Is anyone aware of an emacs mode or function that will reformat a buffer holding a delimited file such that each delimiter (e.g. tab) defines a "column" with the width of each column set to the longest entry? I can reset the tab-width variable but that makes all columns equal width. I would much prefer variable-width columns if possible...

Emacs Setting which-function-mode

I would like to have which-function-mode on by default when I open up Emacs. I've added the following lines to my .emacs file. (setq which-func-mode t) (setq which-function-mode t) When I open up a .cpp file and navigate to the body of a function, I'm not seeing the function name in the status bar at the bottom like I should. If ...