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

4
votes
0answers
53 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 ...
3
votes
2answers
670 views

Forcing emacs to run with `-nw` when called from terminal

note: This question might have been asked before ( I think I saw it somewhere), but a quick search did not reveal anything. I would like to tell the difference when a command is run from a shell. ...
3
votes
2answers
113 views

Getting emacs to convert latex on the fly?

What's really nice about posting in the math stackexchange, and other forums, is that you can view the latex symbols right below as you're typing your post. Is there a way to do this in emacs? That ...
3
votes
3answers
301 views

Scrolling on very long files (1M+ lines) on Emacs

I was wondering if besides the basic navigation commands: C-p : Jump backwards one line. C-n : Jump forward one line. C-v : Jump forward one full screen. M-v : Jump backwards one full screen. M-a : ...
3
votes
2answers
364 views

Is there a user interface in Emacs allowing one to “grab” the buffer's filename conveniently?

It happens quite often that I want to use the path of the file opened in a certain buffer in Emacs (either the full path or the basename) in another place (a buffer or a different X program, say, a ...
3
votes
3answers
718 views

How do I set up a .emacs initialization file?

I am using Linux Fedora 13 (Constantine) and emacs 23.1.1. I am trying to set up a .emacs file for initialization, by using emacs itself to edit and save a file .emacs in my home directory. However, ...
3
votes
1answer
135 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: ...
3
votes
3answers
651 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) ...
3
votes
1answer
65 views

Undo everything in emacs

Is it possible to undo everything in an emacs buffer in just one step? I can do it step by step using C-x u but how can I do all steps just with one command?
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 ...
3
votes
1answer
209 views

Emacs shortcuts in term mode

I've a question about using Emacs as editor and terminal. I split my window into different windows with C-x 3for example. One of the generated Window is used as terminal with M-x term. Usually I ...
3
votes
2answers
611 views

How to enter Erlang Mode in Emacs?

How do I enter erlang mode in emacs to get code highlighting, etc.? Whenever I open an erlang file nothing special happens. Do I need to change something in my .emacs file, or do I need to add a ...
3
votes
4answers
424 views

How to set up tea-time in emacs to use native notification system in gnome

Is there an easy way of having tea-time display messages via gnome's native notification system? The current "notification function" in tea-time.el is: (defun show-notification (notification) ...
3
votes
2answers
63 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 ...
3
votes
1answer
620 views

Showing type of newline character in Emacs

How can I have Emacs display the type of new character? I am looking for something similar to what Notepadd does (see below). I read that Emacs comes with M-x whitespace-mode but this doesn't seem to ...
3
votes
1answer
169 views

Emacs: Different users, different themes, same init file

I use emacs at work, where I usually connect to the system with two different users: myuser commonuser The former is my own personal user, whereas the latter is shared by the whole team to manage ...
3
votes
2answers
888 views

No font in emacs on CentOS

When I open emacs over an SSH connection I get this error Warning: Cannot convert string "-*-courier-medium-r-*-*-*-120-*-*-*-*-iso8859-*" to type FontStruct Warning: Cannot convert string ...
3
votes
1answer
65 views

Appending values to environment variables from within Emacs

I am new to Elisp. I would like to do the following in my init file: ; Retrieve the value of LD_LIBRARY_PATH ; Append '/path/to/some/lib/:'to it ; Save the new value of LD_LIBRARY_PATH So far I ...
3
votes
1answer
95 views

Symbolic link starting with .#

I have a symlink in one of my directories that has the following name: lrwxrwxrwx 1 XXXX ZZZ 37 Jan 15 18:18 .#perl.org -> XXX@YYY.com.2980:1344441539 I am wondering what this symlink ...
3
votes
2answers
182 views

Creating Emacs TAGS file

I am working through the "Emacs Lisp Intro" book within Emacs 23.4.1 on Debian Wheezy (CrunchBang Waldorf). Section 4.1 discusses the find-tags command and the TAGS file. Instructions are included to ...
3
votes
1answer
126 views

In Emacs, editing C, sort-fields not working, or stating sole completion. Why?

In Emacs, editing C, and trying to execute sort-fields doesn't seem to be working. I enter M-x sort-fields after highlighting a region. At one point it was letting me pass a field number, but then ...
3
votes
2answers
342 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 ...
3
votes
1answer
229 views

Truncate long lines in emacs from command line argument

I know the command in the .emacs for long line truncation is: (setq-default truncate-lines t) or the keystroke: M-x <RET> toggle-truncate-lines <RET> but how do I pass these as ...
3
votes
2answers
148 views

mode-specific emacs keybindings

I'm trying to get emacs (23.3 on Arch Linux) to map Ctrl+F12 to the built-in "compile" function when in C-mode (actually CC-mode, which comes built-in as well). So far I've tried the following: ...
3
votes
1answer
189 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 ...
3
votes
1answer
163 views

Emacs not showing filename

Where once was the filename of the file now there is a black stripe, preventing me to see what I'm editing. To clarify a bit, it's that black stripe between "F1" and "All", when I did the ...
3
votes
2answers
205 views

How to bind “ß” to Meta-s?

I am using Carbon-Emacs on MacOS X 10.6 with the US-International keyboard layout. Usually, I can use Alt+s to print the letter "ß". However, Emacs interprets this as Meta+s and complains that there ...
3
votes
1answer
102 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, ...
3
votes
1answer
124 views

Navigating the CLI: Go back N words

I'm a Vim user, so I'm learning Emacs commands for use in the Bash CLI. I know that on my systems I can use Vim-keybindings in Bash but I'd like to learn how to use it effectively in its default ...
3
votes
2answers
96 views

Emacs - Changing show-paren-mode Areas

I like show-paren-mode in Emacs, but I would really like to change the highlighting behavior for closing brackets. That is, I want the opening bracket to be highlighted when the point is on the ...
3
votes
4answers
381 views

emacs copy and paste

How can I copy from emacs and paste into another instance of emacs or else where? If I do C-space, M-w, and then C-y, I can only paste in the open instance of Emacs. If I navigate to another Emacs ...
3
votes
2answers
161 views

Wiki for emacs users

I am looking for a new wiki software for a small private network. Since all users are very addicted to emacs, it would be nice to make everything "emacs compatible". What wiki software is most ...
3
votes
1answer
161 views

End of lines problem in emacs when editing markdown texts via It's All Text

I want to edit markdown source in emacs using the It's All Text plugin for firefox. In markdown you have to add two spaces to the line-end to get a new line. Suppose there is such a newline in a ...
3
votes
2answers
612 views

Emacs auto encryption and gpg

Emacs encrypts/decrypts .gpg files automatically. But recently I have lost the ability to decrypt files encrypted by the Linux gpg tool and vice versa. I use: passphrase symmetric encryption gnupg ...
3
votes
1answer
898 views

Disabling caps lock by setxkbmap makes it Shift key in Emacs

I'm using GNU Emacs 23.2.1. within Xfce 4.8.0 (both coming from the Ubuntu Natty repository). I disable the CapsLock by running /usr/bin/setxkbmap -option "ctrl:nocaps" at the beginning of the Xfce ...
3
votes
2answers
765 views

Working with screen and emacs

I'm working with emacs (on the terminal) and I use screen to switch between terminals. The key combination Ctrl+A is grabbed by screen. Is there a way to change screen key binding?
3
votes
1answer
30 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 () ...
3
votes
3answers
36 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 ...
3
votes
1answer
81 views

Emacs: make portion of buffer readonly

I sometimes edit files in emacs where portions of the file are documentation or something else that shouldn't be edited, and another portions are "play areas" where I'm free to edit and create new ...
3
votes
1answer
115 views

How to use the Meta/Alt Key with tput?

I want to redefine keybindings for the commandline of a lisp dialect. The commandline is actually modeled after Vi and implemented with tput/terminfo. I want an alternative version with Emacs ...
3
votes
1answer
88 views

can color-theme bind to a buffer?

I want to use different color-theme for different file types. I tried to use add-hook to set the color-theme for the major-mode, but it only applies when the buffer is first load. If I switch to ...
3
votes
2answers
527 views

emacs - paste text from clipboard without formatting

I am using Emacs 24 for MacOSX and having some problem with pasting code from clipboard to Emacs. The code that I selected usually already nicely formatted (with tab, ident, ...). However, when I ...
3
votes
1answer
730 views

Emacs cperl mode - how to use tabs for indentation instead of spaces

Is there a way to make cperl mode in emacs use all tabs for indentation instead of spaces? I've tried setting indent-tabs-mode, and cperl-tab-always-indent. Here is my .emacs file: (defalias ...
3
votes
1answer
28 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
134 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 ...
3
votes
1answer
58 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 ...
3
votes
1answer
430 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 ...
3
votes
1answer
69 views

Emacs soft line wrap at word boundary

How can I have emacs set to move the the last word at the 80 character mark? What I mean is this: Instead of ran/ ge I would like emacs to place the whole word range on the next line at the 80 ...
3
votes
2answers
143 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 ...
3
votes
3answers
796 views

emacs can't open display

Just recently this has started happening; I run: /usr/bin/emacsclient --alternate-editor="" --no-wait -c and get: ERROR: Display :0.0 can't be opened No other applications do this. The output ...