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

2
votes
4answers
2k views

How to clear the screen when using shell mode in emacs?

I cannot using the command "clear" to clear the screen in emacs shell mode as I can in the linux terminal. So how can I do it?
0
votes
1answer
17 views

what does emacs without X support means?

I'm going to install emacs for linux mint, I ran synaptic and searched for emacs and then I see Emacs24-nox(without X support). What does emacs without X support means? In what ways is it different ...
0
votes
0answers
22 views

Emacs indent with tabs to 2 columns [migrated]

Current with C, Javascript, Ruby, etc. when inserting a block with { <RETURN>, Emacs automatically indents the next line, but it does so with spaces. How do I change this behavior to tab ...
4
votes
2answers
876 views

How can I show vertical indentations markers with emacs?

I'm looking for a emacs package or configuration that makes it possible to mark indentations with vertical lines, like in the following screenshot of Sublime Text:
0
votes
0answers
67 views

How to quickly handle mobile-org pull errors?

According to the org-mode manual, here is what happens during a pull error, and how to handle it: Org moves all entries found in mobileorg.org1 and appends them to the file pointed to by the ...
0
votes
1answer
20 views

Hide Emacs initial buffer list when opening 3+ files

When I open 3 or more files at once with Emacs, e.g. emacs file-1.txt file-2.txt file-3.txt ... then the initial Emacs view is two panes, one for one of the files, and the other for the buffer ...
0
votes
1answer
120 views

emacs tramp working with gnome-keyring-daemon

Right now I have gnome-keyring-daemon set to start at login. If I run emacs -q and then open a file on a server using M-x find-file and then enter a file on a remote server such as ...
3
votes
4answers
747 views

Start emacs 23.1 on windows XP only once (emacsclientw.exe)

I have (server-start) in my .emacs file and set the variables HOME, ALTERNATE_EDITOR (=runemacs.exe) and EMACS_SERVER_FILE set. When I start emacsclientw.exe test.txt the first time, I expect ...
3
votes
1answer
107 views

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

See How can I get emacs under windows to autocomplete paths in shell buffers using "\" instead of "/"? I use emacs on windows 7, when calling M-x shell, emacs opens a DOS-Shell. ...
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
3answers
53 views

How to remove file modification tracking on an Emacs buffer?

I have a *shell* buffer in Emacs where I get a Linux command line shell interface. On occasion, I wish to save the buffer's contents to disk for future reference were my session to exit and once ...
0
votes
1answer
47 views

Tramp Issue in Emacs 24.4 Installed through Homebrew

I recently installed Emacs 24.4 through homebrew through the command brew install emacs --cocoa I need to edit the files in a remote cluster with two step authentication. To do this I save the ...
1
vote
3answers
33 views

Notepad++/other editors: How to view same file in multiple columns with auto scrolling?

Is there any editor that allows me to have two columns, where the second column picks up after the last line of the first column? I don't mean cloning like in Notepad++ where I have two open copies of ...
0
votes
2answers
37 views

How can I get my prompt back after starting Emacs from the command line?

After I type emacs somefile at the command prompt and hit Enter, I don't get my prompt back until after Emacs closes. How can I run Emacs so that I get the prompt back immediately after Emacs starts? ...
0
votes
1answer
41 views

Emacs fails to evaluate .emacs file under Windows

I have following simple .emacs (require 'package) (push '("marmalade" . "http://marmalade-repo.org/packages/") package-archives ) (push '("melpa" . "http://melpa.milkbox.net/packages/") ...
0
votes
1answer
74 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 ...
0
votes
0answers
18 views

switching from emacs to Preview of the compiled latex document, resets its display to page 1

I just upgraded to Yosemite but had to reinstall various pieces and this is what happens. I edit my latex document using emacs, and preview its pdf using Preview (auctex is installed, and I compile ...
5
votes
3answers
5k views

How to prevent the “Symbol's function definition is void: error” when running emacs in the console?

To disable the scrollbar in emacs I added (toggle-scroll-bar -1) to the my .emacs file and it works great when I run emacs outside of console mode. However when I run emacs in the terminal I get the ...
0
votes
1answer
33 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 ...
3
votes
2answers
46 views

View patch files with different region highlighted

Is there a desktop application, console utility, or preferably Emacs extension, which can highlight the different regions in a patch file? An example is the diff viewer of GitHub. The different part ...
1
vote
2answers
903 views

Linux: using Evernote from Emacs?

I would like to know if there is software to be able to use Evernote from Emacs in Linux. I edit my notes with Emacs in a .txt file that has grown to several MBs over the last 10 years, and I would ...
0
votes
0answers
11 views

How to export org-mode to html without css, any added text and heading with the same level as in org-file?

How to export org-mode to html without css, any added text (name, table of contents, filename as title - nothing) and heading with the same level as in org-file, and no numbering? It would be best, ...
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
19 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
632 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
47 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
23 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
119 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
29 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
22 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
56 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
287 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
51 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
13 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 ...
2
votes
1answer
46 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 ...
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
187 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
111 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
18 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
209 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
20 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
42 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
362 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
4k 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 ...