The Emacs text editor, one of the main text editors used on Unix and derivative operating systems.

learn more… | top users | synonyms

6
votes
2answers
679 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 ...
6
votes
2answers
560 views

Emacs unicode characters take up more vertical space

When I have the arrow (⇒) it takes up more vertical space in Emacs. So lines with this symbol have a different line height then the rest of my code. This really annoys me :). I have the following ...
6
votes
1answer
655 views

Reading email from Emacs VM using a secure server (Gmail)

This is a question (see below) originally entered at https://answers.launchpad.net/vm/+question/108267 and upon the recommendation of Uday Reddy the question and answers are being moved here. The ...
6
votes
3answers
1k views

Emacs CSS modes - most feature complete and maintained?

According to EmacsWiki there are bunch of CSS modes for Emacs, but none of them seems to be very actively developed or even that feature complete. Which one is the most feature complete so far and is ...
6
votes
1answer
517 views

How to display new line character (^J) in emacs replace query

Say I want to replace all the new lines in my emacs buffer with the character k (wait for the -1, read the rest! :) ). I know I can type M-x replace-string RET C-q C-j RET k. It works fine. My ...
6
votes
1answer
315 views

Org-mode repeating tasks with subtasks

Is there a way to make a repeating task or project with subtasks in org-mode that resets properly? I want to do something like the following: * TODO Weekly report SCHEDULED: <2013-12-29 +1w> ...
6
votes
3answers
3k views

setting monospaced font on Emacs?

I used to use liberation mono font on emacs (on X11) on an Ubuntu system using the following command and it worked great: (custom-set-faces '(default ((t (:inherit nil :stipple nil :background "...
6
votes
1answer
558 views

How to export html from emacs org-mode that can be opened in Microsoft Word

I created an HTML file using Emacs (org-mode export), which I want to open in Microsoft Word. However, Word says it cannot open the file. In the details of the error message, it says: Reference ...
6
votes
1answer
1k views

How do I install the info files for org-mode version 7.5 on Windows XP?

I am attempting to install org-mode 7.5 on a Windows XP machine but M-x org-info brings up the documentation for Org version 6.33x that shipped with Emacs 23.3.1 I downloaded the zip file and ...
6
votes
1answer
2k views

How can I get Putty to support 256 colors in Emacs on CentOS?

As far as I can tell from browsing around, I should be getting 256 colors in my Emacs, but I'm not. I'm running CentOS 5.4 on an ec2 instance. I'm running Putty 0.60 on Windows 7. Putty is set to ...
6
votes
3answers
1k views

How do I prevent emacs from loading `update_terminal_cwd` with autojump?

On MacOSX 10.7, Apple puts into /etc/bashrc a function: update_terminal_cwd that checks to see if Apple Terminal is running AND if we are not in emacs (snippet pasted below). Unfortunately, by ...
6
votes
3answers
2k views

How to make emacs accept UTF-8 from the keyboard

My friends have persuaded me to "try again" (about the 5th time in about 12 years) with emacs. I'm currently suffering a little, and need help with emacs + utf-8. I'm running the 23.3.1 emacs gui on ...
5
votes
4answers
83 views

How to identify the emacs keybinding for something in the GUI?

I started using mu4e for email in emacs recently, and while I was successfully able to configure my email and get comfortable with the general navigations for keys, I can't seem to find the good old ...
5
votes
4answers
2k views

Why does Emacs insert ^m at the end of every line

Why does Emacs insert ^m at the end of every line in my Linux environment?
5
votes
3answers
3k views

How to quickly navigate/jump between functions on emacs?

How to quickly navigate/jump between functions on emacs? I'm looking for a way to jump quickly to functions on emacs. I'm using the emacs search to do it,but it's too slow and fail. For example,I need ...
5
votes
3answers
2k views

Where is the .emacs file located on Windows?

I have installed EmacsW32. I need to edit my .emacs file. Where is the .emacs file located on Windows?
5
votes
2answers
470 views

Can I have a “singleton” emacs instance?

In other words, can I start emacs once, and whenever I type emacs whatever in terminal, have it open as a buffer in my existing emacs instance?
5
votes
4answers
1k views

Good Emacs tutorial? [closed]

After hearing great things about modal text editors, I decided to give Emacs a go (Windows version). Having no experience with this kind of application, I found it extremely difficult to do anything, ...
5
votes
2answers
3k views

Is there emacs plugins to do Sublime-like completion and goto anything?

In Sublime Text 2, I can enter prnfunc[tab] and then it completes to 'PrintFunction'. If I have a project, I can press Cmd+P and enter srcpy/hello.py and then it navigates to source/python/hello_world....
5
votes
2answers
490 views

Gnus: get rid of ~/Mail and ~/News folders

Gnus (Emacs's mail client) creates directories ~/Mail/ and ~/News. I don't want to clutter my home folder, how can i change this directories to, say, ~/.emacs.d/mail/ and ~/.emacs.d/news/?
5
votes
2answers
1k views

How do I exit from Emacs to Cygwin?

I start Cygwin and type emacs and there I am in Emacs. The directions say: to exit type C-x C-c where C is the control key -- I am assuming that is the left control key. So I hold down the left ...
5
votes
1answer
3k views

How do I stop emacs from creating backup files?

I know there's probably a very good reason for it (i.e. backup) - but for personal reasons (it's just annoying me), is it possible to stop emacs from creating a backup of every file I edit? I'm ...
5
votes
1answer
373 views

How does emacs open a file at the same line as the last time it was opened?

On my system, if I open a file with emacs, scroll down the file and close it, the next time I open the file, emacs will automagically scroll down to the same position. How does this work? Is emacs ...
5
votes
4answers
763 views

Unicode in an Emacs regular expression

I'm using emacs 24. How can I replace all occurrences of the non-printable Unicode bidi character RTL, whose hexadecimal number is 202e? I want to replace it with the non-printable Unicode bidi ...
5
votes
2answers
917 views

Is there a way to print the definition of an existing function in Emacs?

I want to see the definition of an existing function in Emacs. Is this possible? I've tried C-h d function-name RET, but it only returns the documentation string for the function, not the actual ...
5
votes
1answer
2k views

Tell emacs what mode to use in file header

Is there a built in way in emacs to to suggest what mode it should use? I have lots of properties files that doesn't have a file endings to guide emacs. Ideally I'd like to be able to put somthing ...
5
votes
3answers
2k views

strange characters in emacs shell buffer

My emacs lists strange escape characters in shell buffers: me@ubuntu:~//configuration.template/hooks$ me@ubuntu:~//configuration.template/hooks$ ls [0m[01;32mpost-commit[0m [01;32mpost-commit~[0m [...
5
votes
2answers
7k views

How to use emacs color-theme on Windows, and help with the .emacs/.emacs.d?

Help would be hugely appreciated :) Here is what I have done: Downloaded the latest release of GNU Emacs and installed it on Windows 7 Completed the tutorial Set my home path as C:\Users\User, so I ...
5
votes
2answers
1k views

Quickly navigating Emacs buffers on a dual display setup

If I have an Emacs frame on each of my displays, how can I easily navigate buffers between the two displays? I typically use shift + arrows to jump to the direction of the buffer I'm looking for, but ...
5
votes
2answers
487 views

How can I differentiate between the different Emacs packages on Ubuntu?

What is the difference between each of the following. emacs22 emacs22-nox emacs-snapshot emacs-snapshot-nox emacs21 emacs21-nox emacs22-gtk
5
votes
1answer
988 views

Autosave / autoload content of scratch buffer in Emacs

I would like to assign a file (~/tmp/scratch) to the *scratch* buffer in Emacs. When I open Emacs I would like ~/tmp/scratch to be opened (preferably in the buffer named *scratch*) and when Emacs is ...
5
votes
2answers
448 views

How can one-handed work in Emacs be eased?

My right hand is temporarily immobilized and I would like to do some minor work in Emacs, mostly in Org-mode, but also in AUCTeX. Are there ways to ease one-handed work in Emacs, such as some mode or ...
5
votes
2answers
1k views

How do I get emacs to insert text into an arbitrary file?

I'm trying to create a function that inserts text into an arbitrary file without switching to that file's buffer. I know this could be done with echo, but is there a way to do it using only elisp?
5
votes
2answers
1k views

How can I tell Emacs TRAMP to use specific arguments to ssh?

I'm trying to set up my Emacs TRAMP to access remote files via ssh, and I would like to add some additional arguments to the ssh command that tramp uses for connecting. Is there a way to do this? I ...
5
votes
1answer
1k views

How can I interrupt emacs opening a large file?

Sporadically when I open a large file in emacs it will hang forever, except the GUI will remain responsive! I can move my mouse between frames and the cursor will fill in, hovering over files in dired ...
5
votes
3answers
6k views

How do I add color syntax highlighting to GNU emacs?

I have two versions of emacs available to me on a locked workstation: $ /usr/local/bin/emacs --version GNU Emacs 22.3.1 $ /usr/bin/emacs --version GNU Emacs 21.4.1 In both cases, my terminal type ...
5
votes
4answers
1k views

emacs starting maximised

I want a keyboard shortcut to open emacs in a maximised window. I tried emacs --fullscreen, but that is full screen rather than maximised window... That is, the emacs window covers ubuntu menu bars. ...
5
votes
1answer
2k views

bash vi mode: What does # -*- mode: ruby -*- # vi: set ft=ruby : mean?

I'm looking through some random code, and at the top of it, it says this: # -*- mode: ruby -*- # vi: set ft=ruby : What does this mean? I know it's a simple question, but I couldn't find it out ...
5
votes
1answer
613 views

Emacs fullscreen on Mountain Lion without Toolbar

The newest version (24.3) of Emacs.app includes support for Mountain Lion's fullscreen. However, even after disabling the toolbar (tool-bar-mode 0), the space for the toolbar is not used by Emacs, it ...
5
votes
1answer
1k views

How do I manage my finances using Emacs? [closed]

I want to track my spendings in Emacs (and, perhaps, Org-Mode). Are there any tools/techniques available for this purpose? Actually, I only need a couple of simple features: Easy tracking of one-...
5
votes
2answers
1k views

How can I disable prompt about trust when encrypting file with gpg in emacs

I want to use emacs to edit files encrypted with gnu privacy guard. Im using the gpg support built into emacs 23 which I think is easy pg assistant. I import keys created at the command line with M-x ...
5
votes
1answer
763 views

Is it possible to sync Remember The Milk with emacs org-mode?

I have just started using Org-mode in emacs, and I am very impressed. However, I currently have all of my todo's in Remember the Milk The simplest solution would be to export RTM into an org-mode ...
5
votes
2answers
3k views

ispell for windows 7 for flyspell mode?

Could anyone point me to the site where I can get the ispell.exe for Windows 7? I need to run flyspell mode on emacs/win32, but it doesn't work as I don't have the ispell. ADDED I found the ispell ...
5
votes
3answers
518 views

Are there any pagers that use emacs keybindings?

Both more and less seem to be heavily influenced by the vi commands. Are there any pagers that are more emacs like out of the box?
5
votes
3answers
4k views

How do I set up Emacs on Linux to read/send mail from Gmail?

I generally like Gmail, but there's something about well formatted, color highlighted plain text over a black background that appeals to me a lot. I'd like to be able to use Emacs to read/send email ...
5
votes
1answer
1k views

How to make emacsclient uses differnt themes in terminal and X window?

Sometimes I use emacsclient -t -a '' in xterm, and sometimes I use emacsclient -c as a GUI application. What annoys me is that the font settings and color-theme are initialized when emacs server ...
5
votes
2answers
1k views

Advanced time tracking in Org-Mode

Are there any advanced time tracking mechanisms in Org-Mode available? I "clock in" and "clock out" my tasks but am wondering wether there is an advanced report (besides the clock table) available ...
5
votes
3answers
633 views

Emacs Dired: copying to the current folder

In Dired, copying is done like "copy the marked files to somewhere else". Is there a way to do this in the opposite direction? That is, in the scenario I imagine I would get a question what to copy (...
5
votes
2answers
1k views

Customizing org-mode export template?

Related to this question: How to define template for org-mode HTML export? I'd like to customize the template inserted by hitting C-c C-e t such that I get a few customizations and even some help ...
5
votes
1answer
533 views

isearch-forward-regexp key binding using Ctrl+Alt+s

The key binding for isearch-forward-regexp is C-M-s, however I cannot invoke that bindings somehow using Ctrl+Alt+s. I can do Esc then C-s to invoke it though. Other commands with the C-M prefix ...