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
1answer
135 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
410 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
56 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
185 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
298 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
412 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
278 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
573 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
48 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
552 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
79 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
1k 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
228 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
177 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
61 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
65 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
120 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
54 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
123 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
125 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
354 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
281 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
82 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
65 views

Emacs slow loading time with AUCTeX on TeX files

I installed the auctex and emacs packages on two Xubuntu 14.04 computers, both of which have been working fine. Emacs itself works fine on both, but now with the auctex package installed, when I load ...
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
68 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
117 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
92 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
34 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
0answers
161 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
19 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
104 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
258 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
62 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
1answer
135 views

Graphical console applications in Emacs

I am having trouble running htop within an ansi-term in Emacs 24.2. It looks like some of the control characters are not interpreted correctly. I thought ansi-term was capable of handling font ...
2
votes
0answers
250 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
58 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
609 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
214 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
2answers
303 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
202 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
298 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
484 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
144 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
2answers
27 views

How to stop emacs server

I started a Emacs in my terminal, and then started running Emacs server inside it by M-x server-start. Now I would like to cancel running the Emacs server without exiting the Emacs process. There ...
1
vote
2answers
77 views

Emacs defaulting to emacs.d as a file

No matter where I am or how I open emacs, I get this message: File exists: /home/{user}/.emacs.d/ I then have to C-x C-f to get to the file I was trying to edit. What is going on here, and how do I ...
1
vote
1answer
49 views

Emacs won't open file in Bazaar repository

I have a Bugzilla installation, and am trying to open /Bugzilla/Install/CPAN.pm using emacs. However, I get this error when attempting to do so: Searching for program: no such file or directory, bzr ...
1
vote
2answers
36 views

Counting numbers in Emacs

Say I have the following long line selected in Emacs. How can I cound how many numbers (or NaN) I have? I tried M-x count-words but it yields the wrong number. It says 1 line 1135 words and 3565 ...
1
vote
1answer
24 views

In emacs term-mode, what is char-mode and line-mode? How do they differ?

Googling, I can only find how to switch between these two, but no description of what they are. So, what is char-mode and line-mode? And what mode are usually regular shells in?