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

1
vote
5answers
2k views

How to disable control-alt-arrow Gnome window manager control for RedHat Linux

How do I disable the Gnome window manger keyboard control for control-alt-arrow (left, right, up, and down arrows) to scroll between workspaces? This is a key binding I use in Emacs and the window ...
0
votes
1answer
19 views

Emacs is not recognizing R scripts as commands I could see only text lines [closed]

I am using Emacs for R when I type in R scripts I could see only text lines and not as scripts so eventually I could not able to run. I saved the work sheet with *.R extension. Please help me thanks
1
vote
1answer
10 views

What function in Bookmarks+ deals with multiple bookmarks with the same name?

The Title is pretty defining. Repeating here, it reads "What function in Bookmarks+ deals with multiple bookmarks with the same name?" Bookmarks+ is an improvement to bookmark functionality native ...
10
votes
9answers
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 *"...
0
votes
2answers
225 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 ...
1
vote
2answers
41 views

How can I close all buffers in Emacs?

I often leave Emacs (actually Aquamacs) open and wind up with a lot of buffers cluttering up my auto-complete. I would like to be able to close them all and start fresh. Right now I quit and reopen ...
0
votes
1answer
65 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 ...
0
votes
0answers
7 views

yasnippet not expanding my new snippet

I created a snippet with yas-new-snippet, content of the file is : # -*- mode: snippet -*- # name: trace # key: trace # binding: C-c t # expand-env: ((some-var some-value)) # type: command # -- Hello ...
0
votes
1answer
29 views

How do I Configure 'org-latex-classes in .emacs?

I use emacs org-mode for keeping track of notes and todos. Sometimes I wish to export notes as a latex file, using the official company style. To get the correct heading styles I run the following ...
2
votes
1answer
249 views

Multi-term in Emacs under Cygwin doesn't correctly identify terminal type?

I've installed Cygwin on Windows 7 Ultimate 64-bit. After a rebaseall, Cygwin works nicely. However, I use multi-term in my default Emacs setup, and multi-term doesn't seem to like Cygwin at all. It ...
8
votes
5answers
13k views

Getting Emacs to use pdflatex

How can I configure Emacs to run pdflatex rather than latex on a LaTeX file when I type C-c C-f (tex-file)?
0
votes
1answer
5 views

Why do I get a timeout from XEmacs gnuclient on LAN?

I have a running XEmacs (and gnuserv) on host A. I start gnuclient from bash on host B but get a timeout (end of strace output see below). Both hosts are in the file pointed to by $GNU_SECURE_FILE. ...
4
votes
3answers
185 views

Double-Mouse-1 selects text and symbol in Emacs

When I double click 'abcd_efg', emacs selects the part 'abcd' or 'efg' depending on what I click. How can I select the whole string 'abcd_efg' instead? Thank you.
1
vote
1answer
320 views

emacsclient super key or hyper key in iterm2

What the title says: I want to switch to using an emacs-server / emacs-client model instead of using the GUI for Mac OS X. I use iTerm2. I would like to map the function key (fn) to super or hyper. I ...
0
votes
0answers
28 views

how to set a kill string length criterion for storing in kill ring

Is there a way to tell emacs ignore kill that are less than 4 characters long? It is quite annoying to have a lot of single character kills in evil mode. Thank you!
0
votes
2answers
36 views

Can I get Emacs to save a local copy when editing a remote file?

I know I can edit a remote file over SSH by opening a file path of the form /ssh:user@host:/path/to/file. However, right now I'm working on a kernel module in a Linux VM. Since my kernel module might ...
0
votes
0answers
31 views

Creating new headlines through capture and file+olp

I am trying to set up my journal file to use capture and a reformatted datetree (I do not like the style of the typical file+datetree). However, I can't get org-mode to make the headlines if they are ...
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 ...
0
votes
0answers
29 views

Resize terminal Emacs window to fit when resuming a Screen session from larger display in Ubuntu

Whenever I start a GNU screen session running GNU emacs (nw, so in terminal) on my desktop with a large monitor, then resume it on my laptop, emacs still thinks it's on a large monitor. This means as ...
1
vote
1answer
80 views

org-mode 8 async export process fails

The new org-mode exporter has an asynchronous mode which seems pretty cool. However, I can't seem to make it work: Initializing asynchronous export process Process 'org-export-process' exited ...
5
votes
2answers
585 views

removing title bar of emacs in Windows XP

I'd like to remove the title bar of emacs in Windows XP. E.g., f11 in Internet Explorer or Firefox. I haven't run across any result in apropos that suggests this is possible in emacs itself. I've not ...
3
votes
1answer
271 views

Special characters in Emacs dired and attachment paths on Windows 7: “\374” instead of “ü” displayed

I want to use dired+ in Emacs for browsing directory paths on Windows 7. I'm having problems with special characters like äöü in dired mode and in attachment paths: dired When I'm trying to ...
0
votes
1answer
19 views

AUCTeX installation failure “Error occurred processing /usr/share/emacs24/site-lisp/debian-startup.el”

I started to work with Debian Testing on a new Lenovo Thinkpad X1 Carbon (3rd gen.). I installed Emacs and AUCTeX the 'usual way': sudo apt-get install emacs24 auctex. My .emacs contains (for many ...
0
votes
0answers
13 views

How to enable tab complete only in term-line-mode

I have company-mode installed. When I press tab in term-mode, it always calls company-complete. I tried to disable company-mode with (global-company-mode '(not (equal major-mode 'term-mode))) Also ...
0
votes
1answer
18 views

Gnus does not delete expired articles

I am trying to use emacs gnus to read my mail. I have read in the documentation (emacs info) that the way to clear away the mail messages is: Mark them as expireable (E) Expire mail articles (with ...
0
votes
0answers
14 views

Open file with emacs as administrator on windows

Is it possible to open files as administrator from inside emacs on windows, like one can do on linux with tramp syntax (/sudo::/path/to/file)? What is the syntax for this?
0
votes
1answer
13 views

Stop Org Mode from exporting headline tags

When I setup a headline like the following #+SELECT_TAGS: export ...snip... * A Heading :export: and do PDF export, the :export: text shows up in the heading. How do I suppress this?
1
vote
1answer
37 views

How to prevent emacs loading saved desktop at start?

I know that we can start emacs without opening last session's files and status, start it by: emacs --no-desktop But how do we do that in the init.el file?
1
vote
0answers
26 views

how to set outline-minor-mode heading levels in outline-regexp

I am trying to add a custom heading to program mode, and I want it to be on the highest level and move all other levels down, so I can add more structure to my long script. For example, for python ...
0
votes
1answer
28 views

How to bind CTRL-<home> and CTRL-<end> to beginning/end-of-buffer in Emacs?

Using PuTTY to connect to Linux from Windows and running Emacs: How do I bind CTRL+Home and CTRL+End to beginning-of-buffer and end-of-buffer respectively? I've been searching the web for a while on ...
0
votes
1answer
37 views

Python debugger not stopping at breakpoints

I'm in a linux based development environment where I don't have superuser permissions. My basic issue is that the breakpoints I set in emacs through pdb never work. The debugger never halts at those ...
1
vote
0answers
20 views

How to show git branch in Emacs shell

How can I show the current git branch as part of the Emacs shell prompt? For example, I have this in my ~/.bash_profile (I'm on Mac OSX 10.9 Terminal): parse_git_branch() { git branch 2> ...
34
votes
7answers
29k 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 ...
2
votes
0answers
49 views

Yank plain text in Emacs?

Using Windows 7 / 8, GNU Emacs 24.3.1 I often yank text copied from browser or incoming email. Is there a way to yank/paste as plain text, leaving out special characters? I tried Ditto and Puretext ...
2
votes
2answers
438 views

How can I run emacs for Mac OS X from command line so it opens up in the GUI emacs?

I have installed “Emacs for Mac OS X” on my Mac running Mac OS X 10.6. How can I run it from a command line to open a file? For example, when I do this: $ emacs aFile.txt It just uses the ...
7
votes
1answer
539 views

Awesome-wm a signal to rise client when focus received

I've got my Emacs running on a tag worker with server-start launched. I have a file manager opened somewhere else (another monitor for example) and when I open a text file with emacsclient it ...
0
votes
2answers
51 views

How to un-default Emacs on Mac OS X 10?

I’ve installed Emacs 24.4 on my Mac 10, and it took over the “default editor” role from my other editors (TextMAte, for example). How can I revert that without un-installing Emacs? Could not find ...
0
votes
0answers
42 views

Loading org-mode agenda files

I'm having trouble getting Emacs to automatically include files in my org-mode agenda. I want files from two folders included, which I've attempted to do by setting (setq org-agenda-files (list ...
0
votes
0answers
24 views

emacs CUA mode Control-C not working

I have CUA mode enabled for gnu emacs 23.1.1 on RHEL. CTL-V and CTL-X are working just as advertised. However CTL-C does not work. I need to use Meta-w. The problem is my fingers have it so ...
0
votes
1answer
15 views

How to scroll the emacs Buffer List window via the keyboard

After invoking the list-buffers via C x C b we have the Buffers Window in the lower pane of the emacs window What are the shortcuts to toggle between the editor windowand the Buffer List window ...
0
votes
0answers
20 views

How to show buffer list while selecting text in emacs CUA mode

What key combination works for selecting buffers in CUA mode? C-x C-x (rapidly) does not work when text is highlighted: it cuts the text. M-x b does not work M-x M-b does not work
2
votes
1answer
867 views

How to tell emacs gdb to show current code line in the center of buffer?

Using the debugger in emacs is nice: You can step through the code with the next command, and emacs will always show the code line that is currently executed, like this: int x; int y; =>int z; ...
1
vote
5answers
511 views

What's the equivalent of Vim's matchit in Emacs?

With Vim's plugin matchit, you can match not only parens, but also a lot more language structures that come in paris (e.g. , if..end, do..end). Now I'm using Emacs (for fun!), and I wonder if there ...
5
votes
1answer
3k views

How can I select text in the Mac OS X Terminal without a mouse (for copy and paste, emacs)

I am using Mac OS X Snow Leopard 10.6.8 and emacs 23.3.1. In the Terminal I can mark text with the mouse, copy it with CMD-C and paste it with CMD-V. This is all I need and it works great, even within ...
0
votes
0answers
24 views

Copying from Emacs to other tmux pane (code execution for Ipython, sql, bash, etc)?

My preferred setup is running a terminal window with several tmux panes (a couple of shells, and an emacs session). What is the easiest way to send code from the emacs pane to be executed in the shell ...
1
vote
3answers
565 views

Why do random characters appear in terminals in Windows?

I've been programming on Windows for a few years, and there has been an issue that is becoming increasingly frustrating as I have really started to use various terminals in Windows for my development ...
6
votes
0answers
88 views

Hang on jabber-connect in emacs

I use jabber.el to connect to my work chat server from within emacs. This was working until recently, but now when I run jabber-connect it hangs after prompting for my JID. Emacs locks up until I ...
6
votes
3answers
2k views

Emacs - kill buffer without prompt

I'm wondering how it can be done, so Emacs doesn't pop the prompt asking me whether I really want to kill current buffer with C-x k shortcut. Interesting thing is that same action done via toolbar ...
2
votes
2answers
258 views

Transpose emacs rectangles

Suppose I have this text: RUN_ RUN_ RUN_ RUN_ RUN_ and want this one: RUN_A RUN_B RUN_C RUN_D RUN_E I would like to be able to write ABCDE and somehow `transpose' it and kill-yank it as a ...
31
votes
6answers
18k 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. ...