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

learn more… | top users | synonyms

2
votes
1answer
2k views

Key for controlling synergy on Mac

My mac has Control/Alt(Option)/Command, and with synergy, each key maps Control/LWindows/Meta(Alt). I want to change the mapping to Control/Meta(Alt)/LWindows. Alt(Option) is key key name is written ...
0
votes
2answers
545 views

Gvim Graphical Preview

I have seen some videos on YuoTube where people are doing some cool things with Emacs, e.g. compiling a LaTeX file and viewing it as a pdf from within Emacs. I have also seen a graphviz DOT file ...
3
votes
0answers
373 views

Escaping spaces in tab-completion in a Cygwin shell subprocess on GNU Emacs on Windows

I use GNU Emacs on Windows and Cygwin as my shell. If I create a Cygwin shell subprocess with M-x shell, I get a proper bash prompt. If I type this: cd ~/My<tab> it tab-completes to cd ...
1
vote
2answers
2k views

Getting GNU Emacs Windows to run my ~/.bash_profile when creating a Cygwin M-x shell subprocess

I use GNU Emacs on Windows and Cygwin for the shell that I do all my work in. The ~/.profile used by Cygwin is ~/.bash_profile. If I start a Cygwin shell by running C:\cygwin\Cygwin.bat, it starts ...
3
votes
3answers
1k views

I have started using emacs with -nw option - ctrl-home and ctrl-end don't work

In order to speed up my emacs work flow, I am trying out emacs -nw versus running in X-Windows mode. Ctrl-HOME and Ctrl-END are not working at all, and have tried editing .keymap files and following ...
7
votes
4answers
1k views

How can I sync Emacs with Google Calendar and Contacts?

Is there a way to use Emacs to sync with Google Calendar and Google Contacts, ideally keeping a local copy so I can access them offline?
13
votes
4answers
3k views

emacs: How to return to last position after scroll/page up/down?

After issuing scroll-up or scroll-down in emacs, is there a quick way to return the point to its previous position (assuming I didn't remember to add it to the mark ring)? Alternatively is there any ...
0
votes
1answer
350 views

Open a frame, not a tab when open a doc with Aquamacs command line

Aqumacs has a command line name 'aquamacs', and I can use this command to launch the Aquamacs without using 'open -a Aquamacs'. The thing is that when Aquamacs is already running, calling 'aquamacs' ...
0
votes
1answer
202 views

emacs/elisp setup files when loaded

I found that the elisp (emacs elisp) doesn't seem to read .bashrc, as the PATH variable is different from the one set in .bashrc, as I asked in here. I tried to load .bashrc using 'source .bashrc' in ...
6
votes
3answers
3k views

Upgrade org-mode with Aquamacs

As is asked and answered in here, Aquamacs has the org-mode that is pretty old, and there are some problems with capturing. How can I upgrade the org-mode with Aquamacs? Is it OK just copy lisp/*.el ...
2
votes
1answer
664 views

emacs automatically insert date last edited

I'm using Org Mode and I was wondering if anyone knows how i can add the date that the file was last edited within the actual file?
2
votes
1answer
80 views

Find several files with one command in Emacs

I would like to know Emacs' equivalent of Vim's :n, which opens several files according to a glob. Say I have this directory: -rw-rw-r-- 1 pablo pablo 31 Jun 25 00:59 /home/pablo/tmp/prueba.php ...
1
vote
1answer
484 views

Emacs “shell-command-on-region” does not pass STDIN to command if command line contains meta-characters

I'm running Emacs on Windows-XP SP3 GNU Emacs 22.3.1 (i386-mingw-nt5.1.2600) of 2008-09-07 on SOFT-MJASON When I run a command where the argument contains shell meta-characters, my Emacs region is ...
2
votes
2answers
107 views

Make emacs show comments after } else {

This is best described on an example. Let's say you have the following C source file: if (something is true) { meh(); } else if (something else is true) { foo(); } else { // something even ...
0
votes
1answer
818 views

Compiling in emacs

When I try to compile a Hello World program in emacs, using g++ -Wall Hello.cpp I receive the following error: /bin/bash: g++: command not found Compilation exited abnormally with code 127 ...
2
votes
2answers
139 views

Way in Emacs to do a tags like search over all open buffers

In Emacs, the tags-search command allows a search across files in your tags table. It would be handy to have a similar search functionality but over the open buffers in your Emacs session. Does such ...
1
vote
1answer
105 views

(xubuntu)click on webpage file and open file with emacs

I am using xubuntu and there are a few types of files on website that instead of downloading and saving and then opening with emacs, I would rather when the radio button choice comes up say open with ...
1
vote
2answers
1k views

Using Aquamacs for EDITOR in Subversion

Is it possible to use Aquamacs as the editor for Subversion. For example, if I do svn propedit svn:ignore . and I have the EDITOR variable set to "emacs", it will use GNU emacs for the editor to ...
1
vote
0answers
273 views

sshfs and emacs on OS X; file has changed since last visited or saved

I am trying to use sshfs (2.2.0) and macfuse (2.0.3) along with emacs (23.2.1). Many times when I try to save a file that I am editing from the remote file system I get the error: file.txt has ...
3
votes
3answers
4k views

Tramp: Waiting for prompts from remote shell

I have an issue with tramp against a specific host when I use ssh-keys for authentication. It works fine when I don't use ssh-key authentication, but I would like to prevent entering the password all ...
0
votes
2answers
865 views

EMMS (emacs multimedia system) error in Emacs: “Don't know how to play track…”

This is tricky. I've found another user through google that has the same issue but I couldn't seem to find any resolution. Specifically, on my machine, EMMS will play tracks fine when Emacs in running ...
3
votes
1answer
521 views

Starting Emacs only once with different files on Windows

I want to have emacs registered with file extensions on windows, but only one emacs instance should be open, even if I open several files through their extensions. I have installed emacs from ...
1
vote
3answers
202 views

Record history of changes within Emacs

How can I record myself working in Emacs to replay later to show others? There was a site a while ago that displayed an author writing up an article, and displayed everything they typed, corrected, ...
17
votes
5answers
6k views

Syncing Google Calendar [Gcal] and Emacs Org-mode? Is it possible?

It would be amazing if I could sync Gcal and emacs org-mode, is it possible?
4
votes
3answers
1k views

In emacs dired, how can I run a command on multiple marked files?

I have several files marked in dired-mode, and I'd like to run a command on (say (delete-trailing-whitespace) on each of them. Is there a built-in way to do this, or do I need to write it myself? ...
2
votes
1answer
281 views

How can I remove the gnu logo from emacs?

How can I remove the GNU logo from emacs? I am on a Windows system and the green area keeps flickering, which I find distracting.
1
vote
3answers
500 views

Emacs daemon not deleting socket

I run Emacs through the emacs --daemon command, which sets up a socket file /tmp/emacs100/server for emacsclient to communicate through. When I kill the server as: emacsclient --eval ...
2
votes
1answer
969 views

How can I use matlab's command window from inside emacs?

I am trying to use matlab's command window from inside Emacs. I typed M-! to get the prompt for the shell command, then I typed matlab, and as expected Matlab's command window opened inside emacs, ...
0
votes
1answer
298 views

emacs keybinding of alt-f4

Is it possible for M-f4 to first close the frames until there is only one frame left and them close emacs all together? I did bind delete-frame to M-f4 but i keep forgetting that M-f4 doesn't close ...
3
votes
3answers
761 views

How to get emacs to highlight and link file paths

Is there some emacs lisp code that would automatically find /nfs file paths in the buffer and highlight/link to them? So clicking on them would open that file? Example path: /nfs/foo/bar/file.txt
1
vote
1answer
112 views

Make Emacs status bar draggable anywhere?

In Emacs, if I split the frame (C-x 2), each window has a status bar. Historically, I could drag the status bar to resize them. Unfortunately, with Emacs these days and just a few modes (for version ...
2
votes
2answers
305 views

What is the keyboard shortcut to paste from the kill menu in Emacs?

Using a fresh Ubuntu install of Emacs, what is the keyboard shortcut to paste from the kill menu? Everything else seems to already have a shortcut defined, does this one need a special entry in the ...
3
votes
2answers
1k views

Linux - remap Ctrl-[ key

On Linux, the Ctrl-[ key combination appears to be equivalent to hitting the Esc key. I would like to define the Ctrl-[ as a shortcut in Emacs but I am unable to because by the time the keystroke gets ...
41
votes
7answers
24k views

emacs: how to indent/unindent region of python code by 4 spaces?

I have a region of python code selected in emacs. What are the most efficient ways to indent and unindent every line in it by 4 spaces? Ideally I'd like something that's not context sensitive (eg. ...
3
votes
1answer
187 views

How to suppress buffer proliferation in emacs auctex

When latexing, previewing, and jumping to PDF from emacs, there are sometimes errors and problems, in which case emacs throws up a bunch of frames which intrude on the editing window and which I have ...
4
votes
3answers
1k views

lightweight web browser with emacs-like keybindings

Uzbl uses hjkl for moving around, much like vim does. I was wondering if there was a browser (text based like links, or needing X like uzbl) which would be easy for someone used to emacs key bindings? ...
1
vote
3answers
3k views

How to install emacs code browser on Ubuntu 10.04 LTS Lucid Lynx

I'm getting started using emacs. I would like to set up the emacs code browser. How do I do this? I am using Ubuntu 10.04 LTS Lucid Lynx.
8
votes
3answers
6k views

Installing AucTeX 1.86 over Emacs.app in OS X

I am trying to install AucTeX 1.86 over an Emacs binary (version 24.0.50) from emacsformacosx.com. On first attempt ./configure outputs: configure: error: Cannot find the texmf directory! ...
0
votes
2answers
234 views

Error message while opening file in emacs

I am using Ubuntu and am getting started using emacs. I noticed that I get this error message every time I open a file with emacs. $ emacs index_controller.rb ** (emacs:1966): CRITICAL **: ...
7
votes
1answer
311 views

Emacs: how to trigger scroll when cursor is n-lines from top/bottom of screen?

I'd like to trigger a scroll in emacs when my cursor gets within 4 lines from the top or bottom of the terminal. My .vimrc file contains this line: :set scrolloff=4 What do I add to .emacs to ...
2
votes
1answer
9k views

Uninstalling Emacs on OS X (Snow Leopard)

I have several versions of Emacs installed in my system, some of which do not work, and I would like to get rid of all but one (or maybe all of them and then start from scratch again). I tried looking ...
1
vote
3answers
258 views

emacs keybinding

In emacs, What do I press on my keyboard that corresponds with the keybinding. A-.
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

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 ...
4
votes
1answer
692 views

Can I bind F4 to 'emacs -nw' in mc?

It seems it' ok to use 'EDITOR=emacs',it open GUI emacs. If I use 'EDITOR=emacs -nw', it fails.
0
votes
1answer
810 views

How can I show the Emacs menu in GUI emacs frames but not in tty frames when using emacs daemon mode

I start an emacs daemon which I connect to both from long-lived GUI emacs frames and short-lived tty emacs frames. I currently use the following in my .emacs.d/init.el: (if (not window-system) ...
2
votes
2answers
392 views

copying text from emacs into other programs

Say I want to copy part of a file I'm writing in emacs into, say a blog post or something like that. Putting the text into the kill ring doesn't allow me to paste it into another program. As it ...
2
votes
8answers
1k views

any emacs like tool while working via SSH

I use emacs for coding and other stuffs. I have now a website which I have to do so many file editing work on ssh connection. It was difficult for me to learn vi or nano. I like to know if any tools ...
7
votes
2answers
3k views

Changing emacs bindings on Mac OS X for command to be meta

I'm using GNU Emacs 23.2.1 (x86_64-apple-darwin, NS apple-appkit-1038.29) of 2010-05-08 on black.local on OS X. I downloaded it from here: http://emacsformacosx.com/ My problem is that it doesn't ...
0
votes
1answer
1k views

Mercurial says hgrc is untrusted in Emacs, but works fine from the command line

I've got some Mercurial checkouts in a directory that was mounted by root. Mercurial is usually suspicious of files that aren't mine, but I'm the only user here, so I put: [trusted] users = root ...