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

0
votes
2answers
52 views

How to kill a process in a terminal inside emacs

When I code, I usually use multiple buffers in emacs. Some buffers with my code, and a buffer with a terminal emulator (M-x term), There I compile, execute interpreters, etc. When I get an infinite ...
1
vote
0answers
9 views

tmux color theme in emacs gtk

When I use emacs -nw I always use it in tmux 256-color mode. tmux applies its default color theme to emacs so it looks like this: For some reason I like that color theme far better than any other ...
0
votes
2answers
41 views

Emacs how do I interpret this Lisp debugger report

I am trying to make up a .emacs file on my new Fedora 20 computer, and get this line when I use emacs -debug-init &. I expect it to be a trivial mistake, but I find the help on this too detailed ...
1
vote
1answer
21 views

How to enable horizontal scroll bar in GNU Emacs for linux ubuntu?

How can u put a horizontal scroll bar with "don't wrap"? I am also new to linux. Thanks
3
votes
1answer
275 views

Make hunspell work with emacs and german language

I want to make hunspell work with emacs24 and a german dictionary on a ubuntu 13.04-box. To do so I installed hunspell and hunspell-de and added the following to my .emacs file: (setq ...
2
votes
3answers
25 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 ...
3
votes
1answer
80 views

Unset Fn key in emacs (console)

When I run emacs24 on the console the Fn key on both my Lenovo laptops sets the selection mark (in the same way as C-SPC). That's pretty crazy behavior as I need the Fn key to change screen ...
1
vote
0answers
21 views

How to make `helm-execute-persistent-action` not to follow symlink original path

I want to complete by Tab when using find-file, so I bind a function helm-execute-persistent-action to Tab like this. ;; For find-file etc. (define-key helm-read-file-map (kbd "TAB") ...
1
vote
0answers
11 views

How to know function name inside helm

I just installed helm in Emacs. It works fine, but I want to change some key bindings. For example, Go to precedent level inside find-file is binding with C-l. I want to rebind it with C-w. I can't ...
1
vote
2answers
23 views

emacs wont let me use a different background color

I've tried different themes in emacs (on mac with xterm set to 256) and everything works great except it's ignoring the theme's background color. Even if I add (set-background-color "red") for example ...
14
votes
1answer
660 views

Keymapping problem when working with Emacs and Openbox

I have an Apple keyboard and I had to do some remapping of the keys to make the mod-4 key the first key to the left of the Space bar for when working with Emacs. The below script worked fine when I ...
0
votes
1answer
5 views

Eval emacs init.el from CLI

I want to eval my ~/.emacs.d/init.el file periodically from CLI (cron) since it generates other files that I use in my projects according to some extra data. Something like "emacs -q -eval-file ...
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
1answer
23 views

Combos with shift not working in emacs on console

I'm running emacs 24.3.1 on a system with a console-only minimal install of Debian Jessie. Non of the keybindings that involve the shift key works in emacs (except shift to modify upper case). These ...
2
votes
1answer
61 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
48 views

“Unknown terminal type” error when trying to run emacsclient

(I’m using emacs23; on Debian 7; Xfce.) I want to try Gilles’s recommended solution for taking quick notes with Emacs. When trying to run emacsclient -a "" -e "(remember-other-frame)", I get the ...
0
votes
0answers
24 views

Run emacs elisp command with next word as argument

How can I tell emacs to run my own script (which can be elisp too or something in Perl, BASH or whatever), and use the next word after the mouse cursor as argument, or maybe using a group of marked ...
3
votes
1answer
98 views

bash command line editing (Emacs shortcuts)

When writing a command on the bash command line, I can use CTRL+w to delete a word backwards, or ALT+d to delete word forwards. The problem is, that these two shortcuts are not exactly complementary: ...
2
votes
1answer
25 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 ...
1
vote
1answer
35 views

Footnotes in emacs org mode: how to disable [n], but keep [fn:]?

How can I disable the [n] being linked to a footnote and highlighted? [n] can be many things, like any index of an array. So, I want my footnotes to be[fn:n]and only[fn:n]`.
1
vote
2answers
34 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
2answers
148 views

How do I get emacs on a newly installed Fedora 20 system?

I have upgraded from Linux Fedora 12 to Fedora 20 by buying a new computer, and the shop has kindly installed Linux for me from the DVD I bought for the purpose. I assume he did the most basic ...
1
vote
2answers
50 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 ...
2
votes
1answer
353 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 -- * ...
5
votes
1answer
164 views

Linux VT Emacs in tmux, breaks color and cursor

TERM is set to screen. I tried with screen-256color, but then the colors went really nuts. I also tried xterm, linux, and some others (that I could think of, not really thinking) but screen is the ...
3
votes
1answer
58 views

How to show console color in Emacs shell

When I run a command by smart-compile, I get string like this. [32mYour bundle is complete![0m [32mIt was installed into ./vendor/bundle[0m I think [32m and [0m represent color in console. Is ...
1
vote
1answer
28 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 ...
142
votes
14answers
38k views

What are the pros and cons of Vim and Emacs?

How would you compare these editors? What are the pros and cons of each? [note] This is not meant to be answered by those who "hate one and love another" or those who haven't used both.
3
votes
2answers
49 views

How to find Emacs backup files?

Emacs backup files start with .# but I can find those in my directory. I've try: find . -name '^\.#.*' or find . -name '.*#.*' and they are not show up, and I have them. For instance if I create ...
0
votes
1answer
34 views

Trouble Running Emacs Daemon on Ubuntu Boot

I want to run emacs as a daemon, on Ubuntu bootup. The daemon call works, and the init script works, when called in a logged in session. However, when I boot my system, the emacs init script doesn't ...
1
vote
1answer
16 views

Emacs/Lisp interactive string variable scoping

Why doesn't this work? (defun load-browser (app) (interactive "sChoose Browser? ") (cond ((string= app '"c") (setq browse-url-generic-program "chromium") (setq ...
0
votes
1answer
56 views

When I type vim in terminal my bodhi linux complains emacs is not installed (bodhi linux) [closed]

jcress@jcress$ vim The program 'emacs' can be found in the following packages: * emacs23 * emacs23-nox * e3 * emacs23-lucid * jove Try: sudo apt-get install <selected package> I can't ...
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. ...
3
votes
1answer
46 views

Customizing less colors

When using less in OS X, how can I customize the colors with with things are displayed? When I run less within an ansi-term in Emacs the colors don't come out nicely. $ less --version less 418 ...
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 ...
0
votes
1answer
51 views

vncserver -compatiblekbd fails with unrecognized option

I found that when I connect to my computing cluster via vnc Alt-x is not recognized correctly asM-. I tried vncserver -compatiblekbd but I get Unable to start Xvnc, exiting Actually once my ...
1
vote
0answers
81 views

Passing escape sequences to shells within ansi-term in Emacs

In a regular terminal (e.g. iTerm2 on OS X) I can connect to a database, e.g. > psql .... and then, as I type my command in psql, e.g. $ select foo from bar I can move around (as I type psql ...
1
vote
1answer
102 views

emacs elpa load packages

I am using emacs24, and I started using elpa to download the packages to ~/.emacs.d/elpa folder. How can I load these packages? For instance, I have tried (see below) for rainbow-delimiter but it ...
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 ...
3
votes
1answer
59 views

Removing the last n characters from every line in an emacs buffer

Using Emacs built-in facilities, is there a good way to remove the last n characters (for n >= 1) from every line in an Emacs buffer? I suppose it is possible to define a keyboard macro to do this, ...
4
votes
1answer
56 views

How do I stop emacs from asking me if I want to load a large file?

When I open a large file in emacs, I get a message saying 'foo.bar file is large; really open?' How do I stop emacs from asking me this question all the time? In other words, if I open the file, I ...
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
1answer
27 views

How do I stop emacs from colouring the text of the file I am editing?

How do I stop emacs from colouring the text of the file I am editing? I want everything just in plain white. I know that I can load themes, but it's not obvious which theme does what. Can I just ...
3
votes
3answers
553 views

How to use Emacs to recognize and automatically open GPG encrypted file in ASCII armored format?

gpg -ca passwords.txt create encrypted ASCII file passwords.txt.asc. Emacs open the file as a normal text file: -----BEGIN PGP MESSAGE----- Version: GnuPG v2.0.19 (GNU/Linux) ...
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 /, ...
1
vote
1answer
53 views

Autocompletion and coloring not working, when using ssh in emacs shell

I'm connecting to remote server using emacs shell. Emacs shell displays directory listings with proper coloring and auto completion when working with local machine. But when I use ssh the ...
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?
1
vote
2answers
55 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 ...
6
votes
1answer
182 views

What is the difference between shell, eshell, and term in Emacs?

In Emacs I can run a shell using following commands - M-x term M-x shell M-x eshell What is the difference between these three?
1
vote
0answers
64 views

sshfs and Emacs: file changed on the disk

I am using Mac 10.6.8 SSHFS version 2.4 fuse4x library version: FUSE 2.8.7 / fuse4x 0.9.2 I connect via sshfs to a remote cluster (via a bridge). I modify the remote files with emacs. The problem ...