The Emacs text editor, one of the main text editors used on Unix and derivative operating systems.

learn more… | top users | synonyms

1
vote
1answer
34 views

Transposing phrases in Emacs

If I have phrases of the form: blood oranges, green grapes, and Arkansas Black apples tigers and bears and lions paper or plastic curly, moe, and larry Is there a library or tweak to transpose ...
1
vote
0answers
866 views

How to get global tab-width in spacemacs?

Brand new to emacs and spacemacs. Hoping to learn the ropes. I have added the following lines to my .spacemacs file: (setq-default indent-tabs-mode nil) (setq-default tab-width 2) (setq-default c-...
5
votes
2answers
666 views

Edit any text input shown by a browser (mostly Chrome) with Emacs

Goal: to edit any text input (mostly text areas, but also single line inputs) shown by web browsers with an external editor, in my case, Emacs. Achieve a high level of comfort. Whenever I'm browsing ...
1
vote
2answers
31 views

Guarding init modifications for both emacs23 and emacs24?

I have some emacs commands cribbed away and copy/paste them into ~/.emacs when needed. I want to add a code-folding macro, but the macro appears to be different for emacs23 and emacs24. The next two ...
20
votes
3answers
3k views

Edit one file in two different buffers in emacs

I would like to open the file foo.bar twice (or more) in emacs, so I can edit two different parts of it simultaneously. Is it possible? Probably the better question is, how to do it? Is there a way to ...
9
votes
3answers
2k views

Setting major-mode specific keybindings in emacs

In my .emacs file, I want to add a key binding for a specific major mode (setting coffee-compile-file to C-c C-c in coffee-mode). I've found a lot of instructions on using local-set-key and global-...
0
votes
0answers
112 views

emacs global-set-key C-i

I want to remap a few commands in emacs as follows: (global-set-key "\C-i" 'backward-word) (global-set-key "\C-o" 'forward-word) This works well except the TAB key is somehow bound to C-i as well ...
5
votes
2answers
2k views

What is the best mindmapper for emacs?

I have tried to use Org Mode via Emacs to organise information, but somehow I miss information that was easy to see with mind mapping software. Is there anything that can visually display information,...
0
votes
1answer
29 views

What does this emacs error mean?

An error has occurred while loading `/Users/JaydenXu/.emacs': Symbol's value as variable is void: ... To ensure normal operation, you should investigate and remove the cause of the error in your ...
1
vote
0answers
51 views

How to quit reverse-i-search without moving the cursor?

In Bash, I often encounter below situation when doing reverse-i-search (using emacs keybinding in Bash): (reverse-i-search:ccc) aaa bbb |ccc ddd I am in the middle of reverse-i-search for 'ccc', and ...
0
votes
1answer
83 views

Emacs in a Debian 8 chroot environment?

I'm working with a Debian maintainer on a failed self test for a software package under ARMEL. The maintainer was kind enough to help me duplicate his environment. When I attempt to add http://ftp....
0
votes
1answer
71 views

Emacs AucTeX - Folding natbib Citations

In the Emacs AucTex environment, there exists a fold mode, which allows to hide much of the LaTeX markup to focus on the content. I am using natbib citations, i.e. instead of \cite{key} citations I ...
0
votes
0answers
48 views

How to input S-M-RET for emacs in OS X?

Trying to use org-mode, having iTerm2 with left option as +Esc. Also, in iTerm2's setting I put alt+shift+return as Send^[[1;2E; In ~/.emacs, I have (define-key input-decode-map "[1;2A" [S-up]) (...
10
votes
2answers
3k views

Emacs font settings not working in new frame

I'm trying to get comfortable with emacs. I installed emacs starter kit. Now I'm trying to customize fonts. In ~/.emacs.d/init.el I did (set-frame-font "-adobe-courier-medium-r-normal--12-120-75-75-m-...
8
votes
1answer
1k views

Can I tell emacs to paste (middle mouse button) on the cursor position?

If I paste text from, for example, the browser into emacs, the emacs cursor is often already at the position where I want to paste the text. If I would use emacs in console mode, I could just move the ...
4
votes
1answer
382 views

MobileOrg not finding Emacs org file with ssh server

I'm just getting starting using org-mode with Emacs - I thought I'd use it as an alternative to Evernote. Having it on my mobile is pretty important (I'm using the Android version). I'm getting the ...
1
vote
0answers
118 views

How to make urxvt and emacs display fonts the same way?

Here's an image of emacs (left) and urxvt (right) displaying contents of the same file. Note how urxvt characters are shorter, wider, and (to me) not as pleasing to the eye. On some systems (GuixSD,...
1
vote
2answers
80 views

How can I get my prompt back after starting Emacs from the command line?

After I type emacs somefile at the command prompt and hit Enter, I don't get my prompt back until after Emacs closes. How can I run Emacs so that I get the prompt back immediately after Emacs starts? ...
11
votes
2answers
1k views

How to interrupt emacs when control-g does not work in very large files?

I've run into some kind of O(n^2) or worse behavior when viewing very large (e.g. 128MB) files in Emacs and jumping to the end of the file. I think it may have to do with my coloring algorithm to ...
5
votes
3answers
2k views

Emacs Evil search and replace function

Emacs has a Vim emulator mode called Evil. This mode has a search-replace function that does basically the same thing as highlighting a region and running sed on it. The brilliant thing about this ...
0
votes
0answers
38 views

How do I prevent a child process from inheriting compatibility setting? (Display scaling)

When I enable the “Disable display scaling on high DPI settings” setting on the compatibility tab for a program. It looks like any programs spawned from that program also inherits this setting. Is ...
0
votes
2answers
34 views

emacs remove spaces to the edge of the page

I often find myself needing to delete a lot of whitespace to the edge of the page when working in emacs. How can remove it in a quick keystroke? I looked around in the "deleting whitespace" emacs ...
1
vote
1answer
104 views

“Procmail” component of getmail - spamassassin - procmail - mu4e

I'm a newbie trying to work out the following mail solution on a laptop where I'm the only user: getmail - spamassassin - procmail - mu4e (an emacs mail program) Right now I'm succeeding at ...
2
votes
4answers
4k views

How to change the default directory in emacs?

When I'm using M-x gdb when lots of source files are open in emacs, the default directory in emacs is often different with the directory of my working copy to run that file i want to run. It's ...
0
votes
0answers
60 views

“ + Suspended (tty output) emacs dummy.cc”

I get this error when I try to open a file using emacs using: emacs dummy.cc & How do I open the file using emacs in a new tab and not on the terminal?
42
votes
7answers
24k views

emacs: how to indent/unindent region of python code by 4 spaces?

I have a region of python code selected in emacs. What are the most efficient ways to indent and unindent every line in it by 4 spaces? Ideally I'd like something that's not context sensitive (eg. it'...
0
votes
0answers
69 views

Exceed X server not allowing copy/paste from windows apps to X apps

Most of the time I can copy/paste just fine from Chrome on Windoze to EMACS running on linux, displayed on Windoze using Exceed onDemand Client 8. But then it will get into some kind of state where ...
1
vote
0answers
109 views

How to disable auto-save in emacs only for files opened as root

I want to use emacs auto-save feature with tramp, but only for file that I don't open using sudo. My current configuration, based on the tramp documentation, looks like this: ;;;;;;;; BAKUCP ;;;;;;;; ...
0
votes
1answer
49 views

Disable xemacs modes and highlighting

How can i disable all the modes in XEmacs that change the appearance or behaviour of my text files? All i want from XEmacs is to just show the text and make changes according to my keyboard input and ...
1
vote
3answers
510 views

How to select and kill column in Emacs

I want to select a column in emacs and remove it. For example, here I want to remove the word test. This is a test text... This is a test text... This is a test text... In Visual Studio, or notepad+...
2
votes
2answers
832 views

Is it possible to get ESC to behave as an actual escape key?

So I have finally switched to Emacs, not so much because I'm yet convinced it is in itself the better editor but because it certainly does have more powerful extensions. I am still using vim-mode ...
1
vote
1answer
106 views

open a pgp file and edit the decrypted content, re-encrypt on save [closed]

I use dropbox to backup my data, but I don't trust it. It's mostly for .txt files Is there a way of opening them (with emacs or sublime text or something else), and edit the underlying content like ...
1
vote
2answers
380 views

Emacs cursor is invisible in tmux in iterm2

When I try to use emacs -nw inside a tmux pane under iterm2, the cursor is invisible. This behavior is present regardless of which theme I use in iterm2. I'm using emacs version 24.5 on Mac OS X 10....
2
votes
1answer
67 views

Cygwin, emacs and associate it with a file type on Windows

I want to use Emacs as and editor and shell. On Windows 7 I installed cygwin , X11 and emacs. In terminal I added to /etc/profile file these lines: XWin -multiwindow 2> /dev/null& export ...
0
votes
0answers
62 views

Can I force OSX to keep an app in RAM?

I use Emacs and want it to be super-snappy whenever I switch to it to perform an operation. Unfortunately, often I will switch to it and a noticeable delay occurs after the first keystroke. I'm ...
0
votes
1answer
56 views

Edit file in-place without modifying line endings

I need to modify sources under Git version control. The sources are Visual Studio project files, which makes them native Microsoft. I want to avoid whitespace issues, including line ending games. I ...
2
votes
1answer
131 views

Disable default option key binding

In any text editor, when I type ⌥ p it inserts π at cursor ⌥ w it inserts ∑ at cursor Thus every key when pressed with option ⌥ inserts some special character. Question How can I disable this ? ...
0
votes
1answer
47 views

Editor with dictionary word completion [closed]

Is there an linux editor which can autocomplete words from a dictionary? I don't ask for autocompletion of already written words in a document (like gedit does). Also I am not looking for (personally ...
4
votes
1answer
348 views

What is Caret-At (^@) under emacs?

I'm use to seeing Caret-M (^M) under Emacs. But below, I'm seeing Caret-At (^@): The file was created by running the Crypto++ test program on OpenBSD with the command ./cryptest.exe > cryptopp....
3
votes
2answers
252 views

How can I get emacs 24.* under windows to autocomplete paths in shell buffers using “\” instead of “/”?

See How can I get emacs under windows to autocomplete paths in shell buffers using "\" instead of "/"? I use emacs on windows 7, when calling M-x shell, emacs opens a DOS-Shell. ...
0
votes
1answer
230 views

Cygwin Mintty unicode doesn't display fail despite having dejavu sans mono and everything

Edit the problem is ubuntu machine can't display \u03bb as greek lambda symbol ubuntu is remote: [ubuntu@ubuntu:~]$echo -e "\xce\xbb\x0a" λ [ubuntu@ubuntu:~]$echo -e "\u03bb" \u03BB this is ...
2
votes
0answers
123 views

How to display unicode character in emacs

I use terminal based emacs latest on ubuntu. in the terminal unicode characters display fine. But in emacs when I insert a unicode for example C-x 8 RET and some hex 455 it displays as \u0455. I had ...
2
votes
0answers
90 views

Emacs Rmail Gmail - No Mail

I am trying to setup Rmail to read my Gmail account. I have tried following the instructions on emacswiki: (setenv "MAILHOST" "pop3server") (setq rmail-primary-inbox-list '("po:username") ...
0
votes
0answers
37 views

Info: how to get a list of all articles programmatically?

I'm contemplating an improved indexing of Info pages with Sphinx. But in order to do this, I'd need some way of programmatically extracting all nodes (in order to then insert the contents of each node ...
0
votes
2answers
214 views

Emacs showing grey background where there are no characters

Since a couple of days, my Emacs is showing a light grey background on the parts of the window that are not covered by characters (see screenshot). Text appears normally black on white (as per ...
0
votes
1answer
85 views

Making Org-Mode to remember folding?

I am a recent convert to Org-Mode. I like it a lot but I am having an issue with reopening files. When I open a org file, Org-Mode does not remember the folding which sux, because I have to resetup ...
0
votes
2answers
54 views

Ubuntu: how to remove emacs 23 data files

I had emacs 23 installed via apt-get, but I want to remove it completely before upgrading to emacs 24. I did sudo apt-get remove emacs* to remove emacs 23. But some emacs 23 files remain. locate ...
1
vote
2answers
187 views

How can I have Emacs window(s) and cygwin shell running simultaneously on Windows?

I have Cygwin working with Emacs 24.3.1 on windows 8.1 with Emacs downloaded from the Cygwin installation, however I can't use Emacs and the Cygwin shell at the same time or open up multiple Emacs ...
2
votes
5answers
645 views

Emacs not loading init file when run as sudo

Emacs loads my .emacs.d/init.el startup file just fine when run as a regular user, but refuses to load it when run as sudo emacs file.type. I have tried changing the owner of .emacs.d to root with no ...
0
votes
0answers
31 views

I have to press twice C-b in emacs in osx terminal

I installed emacs through brew in osx, everytime I press C-b it doesn't do anything. I have to press it twice every time to make it work once. Any idea?