Emacs is a powerful text editor with an embedded Lisp environment, which allows for great extensibility. Emacs is a lisp environment with many features that also make it a powerful text editor.

learn more… | top users | synonyms

3
votes
4answers
2k views

How to copy and paste between cygwin's vi/emacs and windows clipboard?

I tried to paste what I copied in windows clipboard into cygwin's vi or emacs, and it doesn't seem to work with yy (vi) or M-w (emacs). Is there a way to do it? I learned that /etc/clipboard has the ...
8
votes
7answers
3k views

Emacs equivalent to VIM ci"?

Does emacs have the equivalent of VIMs ci" command? Basically I want to replace the text inside a set of quotation marks. In vim I can ci) or ci] or ci} to "change inner *"...
1
vote
1answer
16 views

Undefine prefix in Emacs

In Emacs, I've become accustomed to using "C-x p" for switching to the previous window. I've recently had to start including a company-wide startup .el file that defines the prefix "C-x p-". I don't ...
4
votes
2answers
615 views

Using Emacs align-regexp to format tables

Vim has the neat Tabular plugin that allows you to quickly align some text. I use it a lot to align blocks of code along a certain character (mostly things like = and =>). But it also does a very ...
2
votes
2answers
1k views

How can I change the emacs unicode font?

I'm using Emacs 23 on OS X, and I am able to change the font that is used for standard keyboard characters, but I've noticed that when I use non-English unicode characters (such as Japanese Kanji or ...
-2
votes
0answers
33 views

Too many open files

When I use emacs on my windows7-64 and try to connect to web by (url-retrieve "http://google.com" 'print),it shows the error: Warning (initialization): An error occurred while loading ...
1
vote
1answer
17 views

Turning on color syntax highlighting in Emacs

I recently installed Emacs 24.3.93.1 on Cygwin. When I first opened code in it, I got a sort of black-and-white syntax highlighting - keywords were white, function names in declarations were black on ...
0
votes
1answer
114 views

How to instruct Emacs auto-capitalize-mode not to capitalize after ellipsis, e.g., and i.e.?

I use Emacs auto-capitalize-mode, which works perfectly most of the time except for ... (ellipsis), and words like e.g. and i.e.. If I write a sentence... and then another part... and then another ...
15
votes
7answers
4k views

How to make Emacs read buffer from stdin on start?

With Vim I can easily do $ echo 123 | vim - Is it possible to do with Emacs? $ echo 123 | emacs23 ... Emacs starts with a Welcome message $ echo 123 | emacs23 - ... Emacs starts with an empty ...
1
vote
2answers
25 views

Emacs binding keys to commands

I'm following the "trick" described here to add new key bindings to my .emacs file: http://www.gnu.org/software/emacs/manual/html_node/efaq/Binding-keys-to-commands.html However, it's resulting in ...
0
votes
1answer
18 views

Get buffer with all macros expanded in org-mode

I'm trying to troubleshoot some macro expansions in my org-mode file, how to I get a buffer that is the org-source with all org-mode macros expanded?
1
vote
1answer
47 views

Microsoft Word file corrupted because I opened it in emacs

So I, being dumb, decided to open my history essay in emacs and tried to edit a word. So I removed a letter from my introduction, and I saved it. The next time I opened the file in word, it said my ...
1
vote
4answers
250 views

Emacs default font does not work with new frames

I have this code in my .emacs file (set-default-font "Monaco 16"). When I start emacs when it is not open (by clicking on the shortcut for instance) it starts with Monaco 16 but when I create a new ...
2
votes
2answers
49 views

Sort structures in file [duplicate]

For example I have file consisting of structures like name = { foo = bar; ... }; So in file there are lots of structures like this. How can I sort them (I'm using vim but emacs is surely ok ...
0
votes
1answer
8 views

Emacs freezes on long line wrapping of shell / REPL output

I have a constant problem with Emacs that it cannot handle the long line-wrapped printouts in RELP or shell mode. The Emacs process starts running on full CPU and is almost completely unresponsive ...
0
votes
0answers
39 views

Directly open remote shell with tramp in emacs

I find that the best to run my shells in remote machines in emacs is using TRAMP (using the ssh command in a local shell does not work for my needs). However, I only know how to run a TRAMP shell if I ...
2
votes
1answer
34 views

How to know which keyboard layout is currently active using cmd in Windows 7 32bit?

Suppose I can switch between 3 keyboard layouts, English, German, and Spanish from the language bar of Windows 7 32bit. What command can be run from cmd to return the value of the current layout in ...
0
votes
0answers
26 views

Launch emacs with ediff-files (of ediff-directories) from command line

I would like to launch emacs to ediff either files or directories. For example, I'd like something like: emacs -f ediff-files file1 file2 But when I do this, it doesn't take file1 and file2 as the ...
2
votes
1answer
62 views

How to turn off auto focus to the pair of bracket in GNU Emacs 23

I installed GNU Emacs 23 on my Ubuntu 12.10 system. When I write a pair of brackets it will focus the cursor to the open parenthesis. I have tried to turn off it but I can't find this option. Can ...
1
vote
2answers
183 views

Why Emacs cursor movement key is choosen such a way?

My question is simple. As a newcomer I find it confusing to use emacs movement keys. So I am curious to know why emacs have chosen its movement key such a way? Up → C-p Down → C-n Left → C-f Right → ...
2
votes
1answer
94 views

Installing Emacs color theme

I've been trying to install color themes for emacs and I'm not quite sure how I can do it. I have downloaded an .el file and put it under my .emacs.d folder, then edited my .emacs file and added this: ...
0
votes
1answer
16 views

Emacs org-mode org-capture: at beginning of headings?

Is it possible to use org-capture in Emacs org-mode so that captured sub-headings are put at the beginning of a section? How to control this behaviour?
0
votes
1answer
102 views

gnutls.c: [0] (Emacs) fatal error: The TLS connection was non-properly terminated

I'm trying to run emacs 24.4-1 on up-to-date Arch Linux. My dotfiles have gone a bit awry, so I cleared out my ~/.emacs.d/ and put in it an init.el with this content (taken verbatim from here): ...
0
votes
0answers
12 views

Emacs: failed to install ELPY

I tried to install ELPY package for python development in Emacs. I followed instructions from here: https://github.com/jorgenschaefer/elpy Yet I kept getting this error every time I start Emacs: ...
0
votes
1answer
41 views

emacs fullscreen interaction with gnus

I have just configured gnus to work inside emacs 24.3. When I run emacs, I like to have four windows open like so: The bottom left window is gnus, when I open my inbox (or any other option) it will ...
3
votes
1answer
355 views

Emacs Shell: Reset Command

In bash, I can clear the screen with the clear command and I can clear the whole "buffer" with the reset command. I'm looking to accomplish the reset in Emacs *shell* terminal. Is there a command / ...
7
votes
7answers
3k views

Fullscreen Emacs in OSX

Is there any way of using Emacs in fullscreen mode in OSX. I'm currently using Emacs from http://emacsforosx.com/
1
vote
1answer
22 views

Remember search/replace strings across sessions

Is there a setting in emacs to remember the search/replace string across multiple sessions? %> emacs -nw fileA %> emacs -nw fileB should automatically replace X with Y (without having to enter ...
0
votes
0answers
7 views

I downloaded a different version of Octave and new it will not work inside emacs

I downloaded a different version of GNU Octave and now it will not work inside emacs. To run it in a typical terminal window, I can just execute octave3.8. I believe the solution would be as simple as ...
2
votes
3answers
1k views

zsh completion will not work in emacs shell

I'm learning about the more powerful tab-completion and expansion capabilities of zsh, and they don't seem to work when I run zsh under emacs with M-x shell: cat $PATH<TAB> expands the tab ...
0
votes
2answers
31 views

Emacs - dired-mode - copy files/directories recursively — remote to local

Using tramp / dired-mode to access a remote shared Centos linux server -- e.g., (find-file "/ssh:lawlist@12.34.56.789:/home/lawlist/") -- I have not been able to subsequently copy files / directories ...
2
votes
1answer
25 views

In emacs edit section of file as if it was a separate file

For some tasks I prefer single big files over splitting a project (say: a LaTeX report, a medium-sized python script) into separate smaller files, e.g. for easier searching and search-and-replace. ...
5
votes
2answers
239 views

How can I make Emacs scroll horizontally more smoothly?

I already use scroll-conservatively to smooth the vertical scrolling behaviour of Emacs. The horizontal scrolling is still pretty bad. The screen jumps by many columns, and I often lose track of where ...
0
votes
1answer
18 views

Emacs Latex mode error "symbol's function definition is void : latex/setup-keybinds

I get this error when I try to load the .tex files in Latex or Tex mode. symbol's function definition is void : latex/setup-keybinds Checked all files but dont know why error is coming as ...
0
votes
0answers
8 views

screen+emacs conflict on ESC key

I have a problem in running emacs -nw inside a screen session. In this setup, pressing ESC followed by any key behaves like pressing CTRL+KEY together. For example, pressing ESC followed by k will ...
0
votes
0answers
11 views

How to stop Putty grabbing Ctrl + Page Up/Down?

Putty grabs Ctrl + Page Up/Down as shown here. How to stop Putty doing so? I have configured Emacs to jump between section comments using Ctrl + Page Up/Down. It works fine with Linux but on Windows ...
0
votes
1answer
44 views

remove spurious ending spaces when copy pasting from emacs console mode?

I'm not really sure where this comes from but it's really annoying: Using emacs in console mode, and when I want to copy from emacs and paste to another application (possibily another term) I often ...
6
votes
3answers
286 views

How to search/replace string for the whole buffer in Emacs without going back to the beginning?

It is really inconvenient to first go back to the buffer top and then do the search/query. Well, for search, it is relatively simple that you can just press C-s one more time to wrap around, but for ...
4
votes
2answers
2k views

emasc temp file cleanup

When I edit files with emacs, emacs creates a file with the same name, but with a tilde on the end: notes.txt~ When I save my changes and exit emacs, it doesn't remove the temp file. Is there a ...
1
vote
3answers
2k views

Installing emacs on red hat linux 5

I am very new to Linux , we are trying to install Emacs editor on linux which is Red hat Linux5. We setup VMWare and installed linux on that , i tried google a lot and couldn't find any tutorial on ...
1
vote
1answer
75 views

Emacs — sort - usefulness of side effect modifying initial list [closed]

Is there any usefulness of the side-effect of the function sort, which modifies the initial list? The modified list is different than the result of sort: (let* ( (initial-list '(3 2 4 1)) ...
5
votes
5answers
955 views

emacs 24.3 on Windows 7 does not close properly

I'm running Emacs 24.3 on a Windows 7 machine. No matter how I close the editor, whether Ctrl+X, Ctrl+C, or the menu, Emacs always crashes and I get the error “GNU Emacs: The extensible ...
28
votes
7answers
26k views

Can I create a link to a specific email message in Outlook?

I use Outlook as my email client at work, but I don't want to use it to manage my tasks and todos. (Instead I use plain text files and Emacs org-mode.) Since many todo items start out as mails in my ...
0
votes
1answer
17 views

Package dependencies in emacs

I'm trying to install js2-refactor mode using package-install inside of emacs but I'm getting a dependency error: package-compute-transaction: Need package `yasnippet-20130218', but only 0.9.0.1 is ...
-1
votes
1answer
42 views

Emacs — tree-view libraries that show date modified, size, permissions, etc

I have modified ztree-mode to provide a tree-view with a few of the dired-mode features -- e.g., mark, unmark, ztree-get-marked-files, up-directory, copy, rename/move, delete, sort by name and sort by ...
5
votes
3answers
2k views

Emacs 24: Loading a package installed via ELPA

I have just installed the cmake-mode package in Emacs 24 using: M-x package-install cmake-mode I can see the package at: ~/.emacs.d/elpa/cmake-mode-20110824, and I can load it using the instruction ...
6
votes
2answers
2k views

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

I'm using emacs to work on linux, windows, osx and everything is fine except one annoying problem with shell buffers under windows. Autocompleting filenames would work great (better than standard ...
0
votes
1answer
82 views

How to create a Mac App launcher for Emacs via HomeBrew?

I created a Mac App launcher for Emacs installed via Homebrew. The technique uses Automator. The problem with Automator is that a spinning gear goes into the taskbar each time. I'd rather not have to ...
0
votes
1answer
33 views

Defining faces for syntax highlighting in Emacs

This is a follow-up question to Adding syntax highlighting for a comment section in Emacs. I have the following face definition adapted from the definition of font-lock-warning-face in font-lock.el: ...
0
votes
0answers
27 views

Emacs Melpa and Marmalade

Does it make sense to include both Melpa and Marmalade package repositories with emacs HEAD. And if so, what is the best way to ensure that one is using the latest and/or correct package, when many ...