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

3
votes
1answer
26 views

Underscores in variable names and Emacs `f90-mode`

Editing Fortran in Emacs with f90-mode, I would like the “word commands” M-b, M-f, M-d, M-DEL and so on to act on “words” as separated by underscores. On the other hand, for the syntax highlighting, ...
3
votes
1answer
24 views

How to replace a char at the cursor in emacs lisp

I want to create a minor mode that helps to input thai tone character. This is what I wrote: (defvar thai-input-mode-map (let ((map (make-sparse-keymap))) (define-key map "2" (lambda () ...
0
votes
2answers
34 views

How do I install emacs 24.3 on Fedora 17 using yum?

I already have emacs 24.1.1, but I need to use version 24.3. I tried: sudo yum install emacs24.3 but it is not recognized. Is there a way to upgrade my emacs or should I simply install emacs 24.3? ...
3
votes
0answers
36 views

How can you achieve vi's `se ai` in Emacs?

What's the simplest way to set up auto indentation in Emacs? I can see that auto-fill correctly wraps, say: This is an indented block, and the wrapping happens as expected. On the other hand, I ...
2
votes
3answers
80 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
0answers
58 views

Emacs — terrible font spacing [closed]

System: Archlinux latest Emacs: 24.3 Emacs Config config: https://github.com/jilen/prelude Seems emacs cannot handle Ligatures
0
votes
1answer
33 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 ...
1
vote
1answer
31 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
71 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
1
vote
0answers
49 views

How to run Emacs nnrss-* commands

Specifically, I want to run nnrss-opml-import command, which should import an OPML file. Trying to run the command with M-x nnrss-opml-import tells me the command doesn't exist. I want to experience ...
1
vote
1answer
386 views

Corrupted gnu-screen session not displaying UTF-8 correctly

(Edited to clarify the role of Emacs in the problem with the display.) My current gnu-screen session has gotten corrupted somehow, and Emacs fails to display UTF-8 characters properly. I've ...
6
votes
4answers
726 views

Open terminal from emacs

Is there a fast way (keyboard shortcut) to open a terminal emulator (in my case urxvt) in the same directory as the file in the current emacs buffer?
2
votes
1answer
25 views

emacs: in terminal selected string gets lost on ctrl-k

I select an absolute file name with the mouse in a terminal I want to open this file in a running emacs: ctrl+x ctrl+f Emacs mini buffer: contains "~/...." I enter ctrl-a ctrl-k to delete "~/...." I ...
6
votes
1answer
973 views

Helm (formerly anything) , Ido and similar tools for Emacs: Overlap and differences

Reading about Helm and Ido for Emacs I noticed that they support similar features. The EmacsWiki provides great info about both, but I still can't tell what sets them apart. What are the differences ...
2
votes
1answer
256 views

Can I Change Caps Lock to Hyper/Additional Modifier?

In Arch Linux, I have Caps Lock function as an alternate Ctrl: In the console through a personal keymap, and in X through a "kbd" option in xorg.conf. I've already researched a little about changing ...
14
votes
1answer
735 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 ...
2
votes
0answers
45 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 ...
4
votes
4answers
3k views

Ctrl-s hang terminal emulator?

I came across a sentence in vimdoc: Note: CTRL-S does not work on all terminals and might block further input, use CTRL-Q to get going again. and this key indeed hangs my vim. I was ...
3
votes
1answer
284 views

Colors for menu bar and the scroll bar on emacs 24

I'd like to change the colours of the menu bar and the scroll bar of emacs 24. The instructions of EmacsWiki (the above links) do not work. This might be because I am using emacs 24. According to ...
3
votes
0answers
12 views

Window display table and buffer display table conflict in Emacs

In Emacs; Is there a way for both window-display-table and buffer-display-table to have effect at the same time? The reason is, I'm using Pretty-Control-L (from Emacs Goodies El script package) and ...
4
votes
0answers
52 views

Tracking my shell path in Emacs

Not a long time ago, I found the following precious snippet that allows Emacs to track my current directory on any ansi-term buffer. More specifically, if I cd <some/path> from within a ...
11
votes
5answers
1k views

What are some excellent Emacs utter beginner resources?

I administrate a couple of servers and do automation with both python and ruby at times. I've seen some awesome Youtube videos of users with multiple open windows, logged in background chats, and ...
2
votes
4answers
86 views

Recover GUI window after minimizing in ratpoison

I'm running ratpoison. I was running emacs started through a keybinding (hence no xterm). Then I hit Ctrl-Z by mistake and emacs disappeared (emacs iconify-or-deiconify-frame). I know it is still ...
3
votes
2answers
335 views

Emacs: Deleting a line without sending it to the kill ring

I would like to use C-k to delete a line without sending it to the kill-ring. I have the following on my .emacs file (delete-selection-mode 1) but this only seems to work for C-d (delete-char) I ...
1
vote
0answers
17 views

Configuring footnotes in emacs org mode

I came along the post Footnotes in emacs org mode: how to disable [n], but keep [fn:]? some months ago, and, as I said there, I don't believe the answer is right. However, I 'd still like to know ...
14
votes
3answers
3k views

Shift-arrow not working in emacs within tmux

I recently started using tmux (was a screen user before) and I'm loving it, except for one small problem. I use emacs within my tmux session and I am used to using Shift-arrow keys to move between ...
1
vote
1answer
40 views

Emacs, complete list of color “keys”

If you want to customize the colors in Emacs, specifying them in the .emacs init file, without installing any extra package, and without using a pre-made theme, something like this seems to work: ...
1
vote
1answer
55 views

How to remove emacs 23 related packages and leave installed emacs 24

I installed emacs 24 in Linux Mint 16, and want to uninstall emacs 23. I thought sudo apt-get remove emacs23 is enough, but it was not. This is my packages list relating emacs. $ sudo dpkg ...
5
votes
3answers
348 views

Emacs: Open a buffer with all lines between lines X to Y from a huge file

In the same spirit as this other question: cat line X to line Y on a huge file: Is there a way to open from within Emacs (and show on a buffer) a given set of lines (e.g. all lines between line X ...
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 ...
4
votes
1answer
252 views

Emacs ansi-term and term not working well when I ssh into a remote machine

I have the exact same Emacs configuration on a local and remote machine, and when I run M-x ansi-term or M-x term on each of them individually everything works great. However, if I run any of these ...
1
vote
2answers
186 views

“emacs: standard input is not a tty” when starting Emacs at login

I have Fedora 20 and Gnome3 classic, and I am trying to use the CTRL/ALT/Fn terminal windows. When I want to edit a file with emacs I use the following script so that my Hints file is automatically ...
1
vote
1answer
164 views

How to disable Emacs gnuclient warning on kill-buffer

When I run M-x kill-buffer for a buffer which was openend via gnuclient, I first get this prompt... Kill buffer (default 'my-buffer-name'): Then I get a second prompt/message... Buffer ...
1
vote
3answers
121 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 ...
2
votes
1answer
104 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
34 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 ...
2
votes
1answer
128 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 ...
0
votes
2answers
76 views

Cancel auto-fill in Emacs

When using Emacs (version 24.1 if that makes any difference), I would like to have a way to remove all the automatic line breaking inserted by the auto-fill minor mode. Disabling auto-fill-mode is ...
3
votes
2answers
1k views

In emacs (or other editor) how to display the byte offset of the cursor?

The question indicates my preference to use emacs, but the overriding issue is that I want to be able to do a normal text search and somehow see/copy-paste the byte-offset of the matched text. To ...
9
votes
1answer
1k views

Emacs: How to insert 'λ' instead of 'lambda' in Scheme mode?

Long ago, I came across a text editor function that replaced the word 'lambda' with the character 'λ'. I would like to do this in emacs. My preferences: I would like to activate this function in ...
11
votes
2answers
1k views

GNU emacs vs. XEmacs

After using Vim for the past couple of years, I'm switching to emacs as part of my "get out og your comfort zone" 2012 resolution. Although I have been using GNU Emacs for the past 10 days, I am ...
3
votes
0answers
614 views

In emacs, is there a way to Hex edit/view a buffer without losing the undo info?

When I use hexl-mode in emacs, it discards the buffer's undo info. Is there another way to hex-edit the buffer and yet retain the undo info? If there is no alternative hex-editor, is there a ...
3
votes
1answer
188 views

Emacsclient docs mention emulating Gnuclient. What is the relationship?

When opening a file in GNU Emacs GUI, I use gnuserv to attach to an already running emacs. I use 'gnuserv' only because the first documentation I read on the subject suggested it. Today I was ...
15
votes
2answers
1k views

GNU Emacs; Does the GUI version offer anything more than the ability to have a GUI menu?

I've been looking at GNU Emacs for a few months now, on and off (mainly off), and I've really only gone as far as testing a few basic things which I especially want in an editor... I'm slowly getting ...
154
votes
14answers
45k 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.
2
votes
2answers
63 views

Converting an if-else statement into a switch statement [closed]

I'm having trouble turning this program from an if-else statement into a switch statement. Any help would be appreciated. #!/bin/bash for x in $@ do array[$i]=$x i=$((i+1)) done # initial state ...
0
votes
1answer
42 views

How to binding right and left ctrl keys separately in Emacs

I reassigned left ctrl key to capslock key to use ctrl in Emacs. Is there a way to bind right and left ctrl keys separately? For example, I want to bind left-ctrl-a to select all and right-ctrl-a to ...
3
votes
2answers
141 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 ...
1
vote
1answer
32 views

osx server, windows client, running emacs opens it on server not client

I've installed emacsformacosx on my OSX box. I'd like to shove my macmini in a data center and run it headless. I've gotten x-windows working. If I run xeyes, it displays on my Windows 7 client. ...
2
votes
2answers
122 views

Emacs : Ctrl+space (set mark) insert only a space in Konsole

I'm having a problem with emacs in Konsole : I can't set a mark to select text in emacs. Ctrl+space insert a space character instead of setting the mark. On XTerm, i've almost the same behaviour. It ...