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
167 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
2answers
49 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
1answer
54 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
36 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
90 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
45 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
350 views

Visualizing ansi color escape codes in log files correctly in Emacs [duplicate]

I have some log files that have ansi-color codes in them. When I open them in Emacs I see garbage:           As an example, I run the following: ls --color=yes -ald -- * ...
2
votes
1answer
90 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
1answer
120 views

Why does emacs movemail take precedence over mailutils movemail?

I have installed mailutils from the Ubuntu 12.10 repo and specified the rmail-mailmove-program as either /usr/bin/movemail or /usr/bin/movemail.mailutils but in either case emacs reports ...
2
votes
1answer
313 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
260 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
79 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
1answer
39 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
53 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
0answers
28 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
108 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
15 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
95 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
193 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
53 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
124 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
207 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
46 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
35 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
507 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
195 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
294 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
3answers
110 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 ...
1
vote
3answers
275 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
3answers
58 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
1answer
392 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
2answers
52 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
43 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
35 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
25 views

Hide “Mail” in emacs mode line

This is small stuff but I haven't been able to figure it out: How do I hide "Mail" from the mode line in emacs?
1
vote
2answers
33 views

Howto copy and text from termial to (GTK-)emacs?

If I select text in my terminal (in my case urxvt) and then click with the middle mouse button into an emacs window (GTK), it pastes the selected text from terminal. Since I don't want this ...
1
vote
1answer
27 views

“Jagged” rectangle text in emacs

Suppose I have something like this is text I want to change it to be "this" "is" "text" The first quote I can insert simply by making a rectangle and doing C-x r t, but the trailing quote I ...
1
vote
2answers
41 views

Emacs, getting the output of the echo area

How can I insert directly the text displayed in the echo area? (also wrongly called the minibuffer). When I for example run (+ 2 2) in a buffer and execute it with C-x C-e it correctly displays the ...
1
vote
1answer
103 views

How to know I am using vi or emacs input?

Crash shell allows to specify the command line editing mode to vi or emacs. What will be the difference in these input methods? I am not asking about the internal features.
1
vote
2answers
141 views

Emacs: mute messages (“echo area”)

I do lots of automatizing in Emacs, by stacking commands that I know from using manually. That is a method I recommend, because it doesn't take much effort: you use Emacs as you ordinarily would, and ...
1
vote
3answers
412 views

Open application on custom desktop in xmonad

Suppose I call shell-command from emacs for example (shell-command "evince"). Is it possible to move the application (in the present example evince) started this way automatically to desktop 5 in ...
1
vote
2answers
2k views

How to make a program which run from shell still live after close terminal? [duplicate]

Possible Duplicate: How do I prevent a script from terminating when the shell exits? I use gnome-terminal, and I run emacs under the terminal in the background by executing emacs &, but ...
1
vote
1answer
796 views

Set default font size in Emacs 23.4?

I use the following in my .emacs to set my default font to Ubuntu Mono: (set-face-attribute 'default nil :font "Ubuntu Mono") However, the defauly font size is too tiny for me. In my menubar I see ...
1
vote
2answers
49 views

Emacs temp dot hash file don't exist

I use find | xargs grep a lot when working on large source code and when I didn't save a file in Emacs it creates .#SomeFile and grep give error that there's not such file (I'm not including because ...
1
vote
1answer
50 views

Emacs change font of a single word (or sentence), not of the whole buffer

Somehow I don't find a way of changing the font size of a specific string of text. I know how to do it globally or temporarily for the whole buffer.Changing the default font is not the issue here. ...
1
vote
1answer
48 views

Emacs - Strange Whitespace

(I posted this same general question here on StackOverflow thinking it had something to do with my emacs configuration, but after following a comment there, I think it is exclusive to urxvt) My ...
1
vote
1answer
69 views

Where is the Ctrl+/ (^/) bash shortcut for undo defined?

I can not find the mapping in bind -p nor in stty -a. Also, it only works in the terminal emulators I've tried (xterm, konsole, gnome-terminal) and not in the linux system console. I think it's ...
1
vote
1answer
79 views

How to open all the files in a directory, using terminal, in emacs?

I've 4 java files in a directory, which I want to work with in emacs. How do I open them all with one command?
1
vote
1answer
70 views

Effect if any of changing LD_LIBRARY_PATH environnment variable on emacs fonts?

The rendering of my emacs fonts changes if I define a specific list of directories under the LD_LIBRARY_PATH environment variable just before I call emacs. I changed this because I wanted to use emacs ...
1
vote
2answers
78 views

Logging all input and output in zsh on demand

Is there any way to activate/deactivate the logging of all input and output on a zsh session? I am using oh-my-zsh with a customized prompt with colors, etc. and I would like to preserve all of these ...