emacs

Emacs Dired rename with alternative tool

In dired you can rename files just by editing the directory listing and then saving it. Is it possible to use use an alternative method for renaming when using dired for renaming? I want to use "svn mv", "bzr mv" or "git mv" instead of just renaming, so that I can register the extra metadata in the source control system. ...

How do I swap CTRL and CAPS LOCK on Carbon Emacs on OSX without doing it OS-wide?

I've recently started learning emacs since I was unhappy with Textmate and as a starting point read the "Effective Emacs" article by Steve Yegge. I was very keen on his CTRL -> CAPS LOCK swap, but I don't want to do it OS-wide, I want this swap to only occur in emacs every time I run it. I was wondering if there's a way to do this in th...

How to run a terminal inside of vim?

I am used to emacs but I am trying out vim to see which one I like better. One thing that I like about emacs is the ability to run a terminal inside emacs. Is this possible inside of vim? I know that you can execute commands from vim, but I would like to be able to run a terminal inside of a tab. ...

Objective-C indentation in emacs

I'm using Emacs to edit my Objective-C code. The default indentation looks like this: NSTimer *timer = [NSTimer timerWithTimeInterval:1.0 target:self selector:@selector(callback:) userInfo:nil repeats:YES]; I would like Emacs to indent the code like XCod...

Emacs: import a CSV into org-mode

Emacs has a very nice extension by the name of org-mode. I would like to be able to easily load CSV files into org-mode without significant grief. All I've been able to find is table-import or table-capture, which, simply put, don't work even approximately well. Note that part of my issue is text strings with a comma within them. 1,2,...

Get font face under cursor in Emacs

I've been developing my own custom color theme, and it'd be really useful if I could get a list of font-faces affecting the text under the cursor. Something like Textmate's show current scope command. That would save me the trouble of doing M-x customize-face and looking through available options, guessing at which one affects the curr...

Tabbar and Orgmode

Hi, how to overwrite keybinding in orgmode, that tabbar still works with [C-Tab] and [C-S-iso-lefttab] I tried it this way: (add-hook 'org-mode-hook (lambda () (global-set-key [C-S-iso-lefttab] 'tabbar-backward) (global-set-key [C-tab] 'tabbar-forward) )) My Emacs version is 23.1 a...

In need of an emacs-lisp function to open certain file types as read only.

I have been using emacs for some time now and am slowly getting the hang of things. However, I don't know enough emacs-lisp to implement the following functionality: I want to define a list (say prog-modes), which will be a list of the programming modes I use (.c, .cpp, .h, .el, .py). If the file I'm opening is of a type mentioned in th...

Command to center screen horizontally around cursor on emacs?

I'm familiar with and use very frequently the C-l (recenter-top-bottom) to Move current line to window center, top, and bottom, successively. I'd like to have an equivalent command to move the current column to window center, left and right borders, successively. Either built-in or a snippet of Elisp. ...

How to keep comments on variables set through "M-x customize" on emacs?

When I set variables through M-x customize, the values are stored in this big, auto-generated, alphabetically ordered list in my .emacs file. The problem is I like to document why I chose a particular value other than the default for a particular variable. If I do that by adding elisp comments inside the auto-generated list, they are cl...

Error in emacs elisp when binding a lambda to a key

I am getting a "Wrong type argument: commandp, (lambda nil (forward-line 5))" here. (global-set-key [?\M-n] '(lambda () (forward-line 5))) What is the error? I'm fairly sure it's simple & I'm missing something obvious. ...

How to create buffer similar to *compilation* in Emacs?

I have an asynchronous process in Emacs, which creates a TAGS file. This process creates a process buffer called *ctags*. If the process result is "finished\n", I kill the buffer. If the process result is anything else I want to display the process buffer similar to the *compilation* status output when running M-x compile. I.e. I w...

Saving the org-agenda

Hi All, I'd like to save the output of org-agenda to a text file, every time that the org-agenda is calculated. This way, I can use an external program (like ATNotes on windows or conky on linux), to pick up this text file and display it on my desktop. How can I do this? ...

How can I most effectively use Emacs as an editor alongside XCode?

There are a few tutorials online (For example) having to do with configuring emacs to work with XCode, but they all seem to be for old versions, and I haven't found one that ties neatly to XCode 3.x + Emacs 23.1 in a way that I can unpack. So, I'm running XCode 3.1.2 and the Mac Cocoa application build of Emacs 23.1. I have a passing f...

Emacs exercises to become more comfortable and familiar with the editor itself as well as Lisp?

There's a great project called the Ruby Koans, it's a series of tasks to exercise yourself in the Ruby language, stepping you through the standard library using the Ruby Unit Testing suite as a learning tool. It's a great project. I'd love to see something similar for Emacs. Can anyone recommend any Lisp exercises to be done inside ...

Bash in Emacs + OSX not finding gems installed via terminal.app?

I am running bash in emacs on osx and its pulling gems from a different place then terminal.app in bash: which gem /usr/bin/gem in terminal: which gem /opt/local/bin/gem How do I change the bash to match terminals? ...

Emacs-style Regex in Info-reader?

I am a Vim-user lost in the Emacs-style Regex of Info-reader. I want to match: $ info find ?How-in-Info-reader? :%s#\(\\;.*\\+\)\|\(\\+.*\\;\)#WORKS!#g INFO: "C-X n" to go through the matches I am looking for the Emacs-counterpart for the Vim-command marked with "?How-in-Info-reader?". How can you find the matche...

Django + Emacs (as TextMate replacement)

There is any complete tutorial how to configure emacs for using with Django (1.1) (on Mac)? Im thinking about switch from TextMate to Emacs to have multiplatform editor for django. I have my fav. theme from textmate and I want to convert this to emacs (maybe is "converter" for this?). Switching from Textmate is a good idea ? ...

how to delete a region of text in emacs?

Possible Duplicate: Emacs: how to delete text without kill ring? I am sick of everything i 'delete' in emacs being added to the kill-ring; it always means i must M-y twice to move past what i just deleted to get what i was going to paste! is there an easy way to actually 'delete' what i select rather than add it to the kill-rin...

Emacs + Mac OSX and changing default font

how I can change default font to Monaco with antialiasing on Emacs 23. Where I can find dedicated binary for Emacs 23.1 for cocoa with antialised font settings? ...