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
2answers
692 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
785 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
117 views

Can you run X11 in Emacs?

I'm new to Emacs, and I find it to he very useful, it's almost like a Text UI with tabs and windows and such. And so many applications. Such as IRC, shell, email, and file manager. But there something ...
3
votes
1answer
44 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 ...
3
votes
1answer
56 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
261 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
81 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
776 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
93 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
197 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
928 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 ...
3
votes
0answers
45 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 ...
3
votes
0answers
199 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 ...
3
votes
1answer
90 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 ...
3
votes
1answer
164 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 ...
3
votes
1answer
84 views

Timelineview of all agenda files

Is it possible to get a timeline view that combines the entries from all agenda files?
3
votes
0answers
237 views

Emacs complains: font 'serif 10' is not defined

I am running Linux Mint 12 and trying to start emacs but keep getting this error: font 'serif 10' is not defined It seems obvious to me that I don't have the correct font. However, I cannot for ...
3
votes
0answers
132 views

Configure Emacs to use Chrome as the web browser of choice?

Using Emacs on a Linux system I click: Scala>Browser Scala API which produces a terminal window with this message: /usr/bin/xterm: Can't execvp lynx: No such file or directory How do I inform ...
3
votes
0answers
239 views

How to Select Tutorial Chapters in Uemacs

I finished installing uemacs 4.0.15.1 from github. I have some experience with GNU-emacs and I wanted to give this a try. I got stuck from the beginning. I opened (by pressing Esc+?) the uEmacs/PK 4.0 ...
3
votes
0answers
710 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 ...
2
votes
4answers
174 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 ...
2
votes
2answers
590 views

emacs shell mode (M-x shell)

When I am using the emacs M-x shell mode I see strange characters on my screen which I believe are related to my prompt (which includes an End-Of-Line) and the use of colors. So, here's what I see on ...
2
votes
1answer
1k views

Use WINDOWS key instead of ALT key in xmonad

I use xmonad + emacs. Both use ALT key heavily. So there are conflicts sometimes. My keyboard has WINDOWS key on it. I would like xmonad to use that key instead of ALT. My current ...
2
votes
1answer
187 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
2answers
470 views

Why does my Emacs toolbar look different over ssh w/ X forwarding on Cygwin vs CentOS?

I'm using Emacs 24.2.1 installed on a CentOS 5 server, which I ssh into with X forwarding (using -Y). I have both a Windows laptop with Cygwin/X installed, as well as a desktop running CentOS 6. When ...
2
votes
1answer
173 views

What is .emacs? How do I edit it?

In this article, I don't understand step 7: 7. Add (load-library “init_python”) in your .emacs How can I do this?
2
votes
3answers
82 views

Emacs paste into search (C-s) field?

Let's say you are writing code in one of Emacs window and then want to search for a string that you have copied manually (M-w) some time before. The problem is, that by default, when you issue C-s, ...
2
votes
1answer
167 views

emacs python2.7

I would like to have emacs work as a python ide for me. I can't seem to find how to compile from within emacs. I'm using python2.7 but when I do M-x python-mode it seems to compile using python2.7. Is ...
2
votes
3answers
243 views

Emacs Message: save sent mails

How do you make Emacs Message (C-x m) save outgoing mails? Is there a standard way to do this? You could C-x C-s but this is inefficient and easy to forget, besides, you can't be 100% it is the mail ...
2
votes
1answer
551 views

Why dialog doesn't support emacs shell on Debian?

Dialog is a utility that provides dialog boxes from shell scripts, you may have seen them in aptitude during upgrades. When i use Emacs shell (M-x shell) and type sudo aptitude safe-upgrade, i get the ...
2
votes
1answer
172 views

How to bind emacs abort to key

This is from a .el file loaded in my .emacs file. What do you think? ;;; Sun keyboard bindings ;; the below line does not work: ;; when <cancel> is pressed, the minibuffer echoes "Quit" ;; but ...
2
votes
1answer
1k views

Load my .profile for bash in Emacs terminal buffer? (multi-term mode)

I've got multi-term mode (derived from ansi-term) with bash started in Emacs 23.3, which is a terminal emulator running in Emacs. However, I noticed that it did not load my user profile, including ...
2
votes
2answers
56 views

How will apt-get handle my manual installed software?

Suppose the Emacs version in the APT repository is 24.3, I configure && make install my own emacs 24.4. After a long time, the software in the APT repository was updated to 24.5. What would ...
2
votes
2answers
115 views

Sourcing a shell script from within Emacs

I would like to source a shell script that changes my environment variables from within Emacs. That is, I would like the shell script to change the environment in which Emacs runs, and I would like to ...
2
votes
1answer
169 views

Building Emacs from trunk without admin access

I cloned the official trunk branch with: bzr branch bzr://bzr.savannah.gnu.org/emacs/trunk I then built autoconf, automake and texinfo. I also updated my PERL5LIB to make it include ...
2
votes
1answer
514 views

Set tab indent in Emacs

I have a very simple thing I want to do in Emacs. I want to set it so that when I press the TAB key, it inserts two spaces. Just this. It's all I ask. I have tried doing this for a couple of years ...
2
votes
1answer
623 views

Emacs: query-replace, regular expression, reuse of search result

How do I combine something like query-replace with a regular expression search-and-replace that in part reuses the search result? In my case, how to transform The programmers are "sort of" ...
2
votes
1answer
65 views

How to ensure that a custom emacs macro operates on region?

Suppose I define a custom macro in emacs in my .emacs file. Is there a way to ensure that it works only on the region I marked in a buffer before executing my command, without going into details of ...
2
votes
2answers
147 views

Editing the *bookmark list* buffer on Emacs

On Emacs (using Bookmarks+), if I type C-x r l I can open the buffer *Bookmark List* and navigate through my bookmarks. On this buffer, if I type Enter on a given bookmark, Emacs opens the bookmark, ...
2
votes
3answers
384 views

Is there a convenient general way to “grab” the echoed result of a command in Emacs (of M-: or M-!)?

Sometimes, I want to insert the result of an Emacs command (that has been echoed in the echo area) to another buffer or another running X program. So, I'd like to put it to the kill-ring. What would ...
2
votes
1answer
419 views

How can I suppress unneeded output from emacsclient?

I use emacs fairly regularly and am trying to configure my system to use emacsclient when possible. To do this I have done the following: In .bashrc: EDITOR='emacsclient -ca emacs' ...
2
votes
1answer
256 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 ...
2
votes
1answer
77 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
473 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 ...
2
votes
1answer
96 views

Configuring Org-mode to open PDFs with evince

I'm starting to use org-mode to export text to LaTeX. My problem is that it opens the generated PDF with ebook-viewer (it is a EPUB, CHM reader) instead of using evince. Question Does anyone know ...
2
votes
2answers
233 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 ...
2
votes
1answer
58 views

Emacs: Interface that mixes commands and arguments

I'm experiencing with ways to configure Emacs to enable me to type less, but achieving the same thing, by exploiting the fact that in programming, you do (type) more or less the same thing over and ...
2
votes
1answer
65 views

emacs session attach back

When I was at VIM age, I used to enjoy working with screen which gives me the flexibility to switch between mulitple windows. And later I switched to emacs but I lost one of my favorite feature: ...
2
votes
2answers
258 views

How to close gdb (or other frames) on emacs?

I'm learning about emacs (using version 2.3 on Ubuntu 10.10), and I'm having some trouble with the frames. When I run gdb, for example, I have to get my mouse and click "File->Close" to close the gdb ...
2
votes
1answer
699 views

How to jump on a position specified by line and column?

When opening a file one can use $ emacs +2:9 practice.b Which will open file ‘practice.b’ on line 2 and character 9 on that line. How do I jump like this in an already running Emacs? I know about ...