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
2answers
23 views

Launch interactive shell command as an emacs buffer

I'd like to run a shell command that asks a few interactive questions before proceeding, from within Emacs. The functionality I'm looking for is like xterm -e <command>, only with an Emacs ...
1
vote
1answer
21 views

Emacs: fastest way to achieve this three-window configuration

Starting from a fresh configuration of emacs with a single window, what is the fastest way (i.e. the minimum number of keystrokes) to achieve a window layout with three windows (A, B, and C) as ...
2
votes
1answer
22 views

How to access history of all Emacs commands?

I see that there is a way to access the history of the minibuffer. I was curious if there is a way to see a history of every action in Emacs, besides just the complex ones. My purpose is to save these ...
1
vote
1answer
17 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 ...
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
0answers
29 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
37 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
34 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 ...
0
votes
0answers
35 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 ...
0
votes
1answer
20 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
1answer
31 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 ...
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. ...
0
votes
0answers
14 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
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?
1
vote
2answers
43 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
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
38 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
27 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
39 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> ...
2
votes
0answers
51 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 ...
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
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
0
votes
0answers
43 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
0
votes
0answers
26 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 ...
2
votes
0answers
44 views

What are the benefits of keeping Caps Lock on after swapping with CTRL? [closed]

I have swapped CTRL and Caps Lock (as it is easier for emacs/bash to have homerow access to the CTRL key). Most places I have read don't mention whether they just turn off Caps Lock (don't remap to ...
1
vote
3answers
41 views

How to select and kill column in Emacs

I want to select a column in emacs and remove it. For example, here I want to remove the word test. This is a test text... This is a test text... This is a test text... In Visual Studio, or ...
0
votes
0answers
35 views

Configure emacs to kill/copy region including character under cursor

When I select a region using C-Space, move the cursor, and then C-w kill (or copy) the region, the character under the cursor is not part of what gets killed (or copied). I would like to configure ...
1
vote
0answers
34 views

Emacs Dired: Sorting by time / date as default

In emacs dired-mode, when I press s I can toggle between alphabetical and chronological sorting of files. Usually, I always prefer chronological sorting, but alphabetical sort is the default. How can ...
0
votes
0answers
26 views

How to make this elisp work? Send STDIN to EMACS

Sending stdin to emacs list this doesn't work: $ ~jsmith/bin/some_script some_arg | emacs -nw I found this elisp code at an older superuser post: # An emacs 'alias' with the ability to read from ...
0
votes
1answer
35 views

Making emacs emit a sound

While programming I am trying to impose a limit of ~ 80 characters per line. In emacs, is it possible to emit a loud short beep when I cross 80 characters on a line?
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
13 views

How to compile predictive mode using Gow instead of Cygwin on Windows?

I want to install the predictive mode for latex in Emacs editor. Since I have windows so I should have the make utility available. I don't want to install the fussy Cygwin (over 100MB), but the much ...
1
vote
0answers
23 views

Emacs, gdb: How do direct program output to gdb buffer in gdb 2 window mode

Is there a way to tell Emacs 24.3.1 with gdb 7.5 to display the program output in the gdb buffer instead of a separate "** input/output **" buffer? (Displaying it in a separate buffer in 2 window ...
1
vote
0answers
27 views

Repeat command in Aquamacs

I am running ESS on Aquamacs. When I execute a command in the command line I can press esc-p to repeat the line. However, when I execute a command from another buffer and then go to the command line, ...
1
vote
0answers
61 views

Make command line unmodifiable in Aquamacs

I am running Aquamacs on OSX. Let's say I open a shell: M-x-shell I find it annoying that I can press backspace and it will delete the command line prompt > and also that I can delete ...
0
votes
0answers
33 views

Emacs on Win7: Gap on top when full vertical

Using emacs 24.4 on Win7 x64 with classic win2000-theme on a dual-monitor setup, each running at 1920x1080, I want to have the emacs window side by side with a browser window. While fullscreen works ...
0
votes
0answers
48 views

Turn off “Java/l Abbrev” mode on JS files in emacs

How do turn off "Java/l Abbrev" mode when editing JS files in emacs? When I open a file in emacs it defaults to the "Java/l Abbrev" mode. I do not want this.
0
votes
1answer
30 views

Emacs: how to auto-pick the next instead of previous window (pane) on C-x 0

Suppose I have an Emacs frame (what normal people call a window) with three windows (what normal people call panes or frames), and that it looks like this, with the cursor at X: ...
1
vote
0answers
53 views

How to copy the whole line with easy way in emacs?

to copy the whole line, I use : ctrl+k and ctrl+y (restore the kill line) and use ctrl+y to yank it is there any easy way?
1
vote
0answers
31 views

Prevent emacs desktop save from holding onto theme elements

I've been having an odd interaction between desktop save and the theme system. I noticed while trying to set up a custom theme that certain elements weren't matching the theme values. Things like ...
2
votes
0answers
56 views

Gnu Emacs : how to minimize it to system tray?

i've been searching around for a way to minimize to tray or hide Emacs app, i don't really want to close it every time i finish using it nor i want to have it's icon showing on taskbar and "alt-tab" ...
0
votes
1answer
22 views

Suppress appearance of headline tags in pdf export

I have headlines like * Title :tag: in my org file. The :tag: text appears in the pdf export of the org file. I don't want to see the tag-names when I export. How do I ...
0
votes
0answers
18 views

How to input Chinese in emacs of mac ox?

My Mac OS is 10.10.1 My Emacs is : GNU Emacs 22.1.1 Copyright (C) 2007 Free Software Foundation, Inc. GNU Emacs comes with ABSOLUTELY NO WARRANTY. You may redistribute copies of Emacs under the ...
0
votes
1answer
28 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
1answer
30 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 ...