A text editor, usually characterized by its extensibility. Often described as "the extensible, customizable, self-documenting, real-time display editor."

learn more… | top users | synonyms

2
votes
3answers
93 views

How to commit a modified file if it wasn't locked by RCS beforehand (and I'm using Emacs VC mode)?

Sometimes, a file under the control of RCS gets modified while it is not locked (= checked out for modification by me). (In these cases, it was actually set read-only by RCS to prevent such ...
2
votes
1answer
85 views

Copying emacs content through terminal app's clipboard copies unexpected tabs for some spaces

I'm using terminal.app on OS X, and when typing in emacs I often want to copy the text and paste it into some other program. When I do, I find that copied text has some spaces unexpectedly replaced by ...
2
votes
1answer
74 views

In emacs are any key sequences available for user macro bindings in all modes

I have recently started using org mode in emacs, but my macro bound in my initialisation file to C-x C-k T no longer works because this combination is used by outline mode which underpins org mode. I ...
2
votes
1answer
60 views

How do I skip special buffers when killing the current buffer?

I have some code in my .emacs that prevents it from showing some pre-defined special buffers when I'm using previous-buffer and next-buffer: (defadvice next-buffer (after ...
2
votes
1answer
69 views

How can I run emacs with no shell?

I'm administrating an Arch Linux server. How can I securely add emacs to my /etc/sudoers editor variable? Currently I have "emacs" but that allows M-x shell. Basically, I want something like rvim, ...
2
votes
1answer
163 views

Use emacs as an editor within itself (ansi-term)

I'm using M-x ansi-term within emacs, and a lot of the tools I use (not only git) are opening editors using $EDITOR. Because running emacs within itself is kind of annoying, I'd like to configure my ...
2
votes
1answer
463 views

untabify on save in Emacs 24 without make-local-hook

I'd like to untabify whenever I save a buffer. This worked fine until I upgraded to Emacs 24 which broke it, as there is no make-local-hook anymore. Have a look: ;;; untabify on C-x C-s (except for ...
2
votes
1answer
57 views

How to create a function to fill the region to a certain width?

Sometimes I justify text in emacs using C-u 70 M-x fill-region. I would like to have a function in my .emacs file that has a parameter so that I can use a shortcut to call the function instead of ...
2
votes
1answer
212 views

Reattach to Emacs session

I was trying to save in Emacs and pushed something wrong and Emacs closed. Judging by ps aux | grep emacs the emacs process is still running with the file I need to save running. (Opening the file ...
2
votes
1answer
330 views

Emacs and Trac Integration

Is there a way to integrate Trac and Emacs? e.g. edit Wiki pages in org mode, edit and manage tickets from within emacs?
2
votes
1answer
472 views

Installing slime and emacs

I'm trying to install SLIME on Fedora 17 so that I can do some lisp. Here is what I downloaded: http://www.common-lisp.net/project/slime/#downloading The CVS Snapshot link. I have a .emacs file: ...
2
votes
1answer
287 views

String syntax for the kbd macro in Emacs [duplicate]

Possible Duplicate: Associating a function in Emacs after looking up the code with M-x describe-key I have typed the following macros on my .emacs file (global-set-key (kbd ...
2
votes
1answer
672 views

Control and up/down keys in terminal for use by emacs

Is it possible to use C-up and C-down when running emacs in the terminal window (when starting emacs from the command line with the -nw flag)? What should my terminal send when I press C-up and C-down ...
2
votes
1answer
50 views

Set EDT emulation by default for Emacs

Using the Emacs editor I can set it to enable OpenVMS EDT editor keypad mode with this command: M-x edt-emulation-on How can I set it so that whenever I invoke Emacs, EDT emulation is the default ...
2
votes
1answer
597 views

Installing vim/emacs on solaris 8

At my new job, they want me to use a solaris 8 operating system, but all my coding experience has been on linux. Linux had a lot of tools built into the system, but it seems like the solaris I'm using ...
2
votes
1answer
81 views

Emacs + whitespace: ignoring 'normal' spaces

I would like to use whitespace to detect wrong whitespace (i.e. trailing whitespace on line, tabs instead of spaces etc.). However I would like to still have spaces displayed as spaces. I tried to ...
2
votes
1answer
2k views

Creating symbolic links to applications in Mac OS X

I installed Aquamacs in a fresh OS X desktop, and wanted to be able to call the program from the commandline. Calling the file inside the app seems to work just fine: Amoss-iMac:bin amosjyng$ ...
2
votes
1answer
240 views

How to get transient highlighting to work from an elisp script?

I want an elisp script to highlight a region of text. Upon exit, the highlighted selection should disappear when a key is pressed. Everything I've tried results in the highlighting hanging on like the ...
2
votes
1answer
187 views

How do I rebind M-/ in Emacs to M— (dash)

I'm basically trying to figure out how to use keyboard-translate in Emacs to make M-- do the same thing as M-/ How do I go about doing this?
2
votes
1answer
213 views

Org-mode: Inserting (advanced) LaTeX equations for HTML expot

I'm using org-mode as working environment, and so far has been extremely useful. One of the wonders of it is the versatility of exporting... I can export to LaTeX or HTML or ODT files from the same ...
2
votes
1answer
63 views

Shortcut for adding `org-mode` environment

I'm using org-mode for organizing myself (very useful so far!). However, it is kind of annoying writing #+begin_comment ... #+end_comment each time I'd like to insert an environment. ...
2
votes
1answer
82 views

Open clickable text in emacs in new/neighboring window

Currently I have a mode (magit to be precise) when I have clickable text switches buffer to the file. However I'd prefer sometimes to open in new or neighboring window. Is it possible to do it? PS. ...
2
votes
1answer
137 views

Emacs Key-binding and the TERM variable

I changed the value of TERM to screen-256color from xterm and it effects the key-bindings in Emacs. Mainly the bindings that use the arrow keys now inserts A,B,C,D instead of running backward-word and ...
2
votes
1answer
56 views

How to apply org-todo to multiple items

Consider an emacs org-mode file like this: ** item 1 ** item 2 ** item 3 ** item 4 Now I can apply org-todo to every item separately (bound to C-c C-t). But how can I apply it to every item in ...
2
votes
1answer
135 views

Emacs - finding the cursor in multiple windows

I've started splitting my emacs frame into two side-by-side windows, but often I'm unable to tell at a glance which window the cursor is currently in. I've bound the other-window command to a special ...
2
votes
3answers
133 views

Can I bridge “backwards” from an ssh connection to my local emacs-server?

I'd very much like to log in to a remote machine with ssh and via the $EDITOR environment variable (or something similar) be able to edit in my local Emacs. In this case, specifically for when I log ...
2
votes
1answer
386 views

Emacs ediff not scrolling buffers equally

In Emacs ediff, I can use v and V to scroll up and down the buffers that I am comparing simultaneously. However, I have noticed that: If I start scrolling each buffer independently Then place the ...
2
votes
1answer
291 views

Dired+ on dark color themes

As far as I know, Dired and Dired+ work better by default (give better color contrast) on color themes with clear backgrounds. I know I can customize face colors on Dired+ for Emacs manually using ...
2
votes
1answer
85 views

Emacs M-h selects paragraph + an extra line

In Emacs, when I type M-h (mark-paragraph), Emacs selects the paragraph under point plus an extra line (typically right above the paragraph). Is there a way to ask Emacs to just select the paragraph? ...
2
votes
0answers
14 views

Setting `$EDITOR` to open file in local emacs session [duplicate]

Sometimes I need to issue a remote command which uses $EDITOR to pick the, well, editor (think git commit for example). Is it possible to use the local emacs session to open it via, for example, port ...
2
votes
1answer
83 views

ess has disappeared from emacs

I frequently use emacs ess functions. Specifically, I use r-mode and run R in emacs. However, quite suddenly, emacs is no longer offering ess options. r-mode is no longer an option in emacs nor is R. ...
2
votes
1answer
145 views

How do I stop emacs from asking me if I want to exit a modified file without saving?

If I am closing a file that has modifications, emacs warns me about this and says I should press y or n. Even when I press 'n', it still tells me that modified buffers exist and asks if I want to ...
2
votes
3answers
115 views

Disable italics in emacs org-mode, Ubuntu

I am having some trouble disabling the italics in emacs. I already tried: '(italic ((t nil))) in .emacs. But there is still a problem. Although it will not italicize the text between / and /, ...
2
votes
0answers
38 views

How to use `smart-compile` without confirmation in Emacs

I'm using smart-compile in Emacs. It works fine, but if possible I want to omit the confirmation like Compile command: ruby foo.rb. How can I do it?
2
votes
1answer
22 views

`(kill-line 0)` kills physical line even with global-visual-line-mode in Emacs

I define backward-kill-line like this. (defun backward-kill-line () (interactive) (kill-line 0)) And I'm using global-visual-line-mode. kill-line kills visual line, but this backward-kill-line ...
2
votes
0answers
107 views

zsh: Echoing every statement?

I have an odd problem with zsh when I switch between shells in a particular way: Option 1 (works well): I start a zsh shell. I switch to tcsh with /bin/tcsh, and I switch back to zsh with /bin/zsh ...
2
votes
1answer
308 views

Gnome Terminal---hide the tilde files produced by Emacs

Editing text file using Emacs will make Emacs make a companion file for its own purpose. For example, after first editing a file called test.c, Emacs will leave a file called test.c~ in the same ...
2
votes
0answers
68 views

Why isn't Gnus scoring emails based on the To: or Cc: headers?

I use Gnus v5.13 in GNU Emacs 24.1.1 to read my email, and I'm having a trouble getting a simple score file to work. Essentially, I want any mail that's sent to (or copies) a particular email address ...
2
votes
0answers
268 views

Can emacs use gpg-agent in a terminal at all?

I understand that there are problems with getting pinentry-curses to work with emacs (see some of the comments on http://emacswiki.org/emacs/EasyPG), and so using emacs in a terminal isn't compatible ...
2
votes
1answer
68 views

Emacs: error when the function is called in a hook

I defined a function in my .emacs file, and I want to call it when a major mode is loaded. My function is interactive. If I invoke my function by M-x, everything seems alright. But if I invoke my ...
2
votes
0answers
36 views

Handle local links to local files in emacs

I have a LaTeX document where I often have to insert pathnames of files on my machine of other LaTeX files. Is there a way in emacs do get the following: A command which opens a file selection ...
2
votes
1answer
694 views

Defining key sequences in Evil-mode Emacs

I couldn't find any instructions on defining key sequences in the Evil doc. The example given by the developers only covers a single key. (define-key evil-normal-state "w" 'foo) What do I need to ...
2
votes
0answers
237 views

linum auto-activation in .emacs fails

I added the following lines to my .emacs.d/init.el to auto-activate linum at startup: (require 'linum) (global-linum-mode 1) (setq linum-format “%d “) But no way, i still have to manually M-x ...
2
votes
0answers
249 views

Is there a better alternative to sudoedit?

What I really hate about sudoedit is the fact that it always uses a different filename. I'm using emacsclient and when editing a file twice I'm left with two useless buffers. Sometimes I even happen ...
2
votes
2answers
311 views

GNU Screen and Emacs

I upgraded recently to OpenSuSE 12.1 from 11.3 and now when I open any files in emacs from inside a screen session, I get a blank buffer. Let's say I open it as: emacs myFile.txt it will open to an ...
2
votes
0answers
213 views

eldoc makes emacs use 100% cpu

When I use eldoc, I add this to .emacs: (add-hook 'emacs-lisp-mode-hook 'turn-on-eldoc-mode) (add-hook 'lisp-interaction-mode-hook 'turn-on-eldoc-mode) (add-hook 'ielm-mode-hook ...
1
vote
3answers
304 views

vim/emacs plugin to view recursive grep search search results?

Suppose I have a file formatted like this: file1:123 file2:4444 some/other/file:2233 This represents the search results from a grep (i.e. file:line-number). I'd like to have a vim plugin which ...
1
vote
1answer
525 views

How to disable X support for emacs

After I install emacs package on Debian 7 (Wheezy), when I start it up on a GUI terminal, it opens a GUI (GTK-based). I would rather it just run from the terminal.
1
vote
3answers
220 views

Adding and removing text from the same place on every line of an emacs buffer

This is in a similar vein to my earlier question: Removing the last n characters from every line in an emacs buffer. The comments made there all apply here. Suppose I want to either insert the same ...
1
vote
4answers
2k views

Count number of processes with ps -Af

I have to count the number of emacs processes on the machine I'm remote using, by using the command ps -Af. Where do I even start?