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

0
votes
0answers
11 views

yasnippet and evil mode : how to switch to normal mode without exiting the snippet environment

The problem is when I am in a snippet expansion, I hit escape to switch to normal mode, and the snippet is escaped. How can I make it to behave like this: one escape only switch to evil normal mode, ...
0
votes
1answer
18 views

Launching “emacs -nw” with 256color on a new xfce4-terminal

I have a litle question about launching emacs using this command xfce4-terminal -e "emacs -nw" I'm using TERM=xterm-256color in my .bashrc but it has effect only when i first launch a new ...
0
votes
1answer
13 views

Connect to shared drive from Emacs on Windows 7

I am using emacs-w32.exe, invoked from Cygwin, on a Windows 7 machine. I'm trying to connect to a shared drive that I can otherwise access and write to (e.g., by using the Windows explorer), but I am ...
1
vote
1answer
17 views

Emacs major mode key map definition fails

So, I've tried to write a simple major mode (report-mode) using as an example. I seem to have everything working except that the keymap doesn't actually seem to map. If I do C-h f report-mode I ...
0
votes
0answers
9 views

Emacs AucTeX - Folding natbib Citations

In the Emacs AucTex environment, there exists a fold mode, which allows to hide much of the LaTeX markup to focus on the content. I am using natbib citations, i.e. instead of \cite{key} citations I ...
0
votes
0answers
14 views

conkeror is not opening webpages when I open a link in emacs (it opens the browser to the hompage)

Problem: When I C-c C-o on a link in emacs it opens conkeror ok but only to the homepage, not the link itself. Also, when I open a link in terminal then it does the same thing. Settings: Ubuntu: ...
0
votes
1answer
22 views

How to call a command in Emacs

I want to start the eww browser in Emacs 24.4. I found in documentation that to do this: "To start the web browser, call eww."[1] However, I cannot figure out how to call this command. How do I call ...
0
votes
0answers
12 views

Mapping ALT to Super in emacs

I am running Emacs under linux on a virtual machine in OSX. I am trying to map alt key on the mac keyboard to super, I want this to only apply inside the virtual machine running linux. Is it ...
0
votes
0answers
12 views

how to keep bash buffer in sync between ansi-term line mode and char mode

when switch into term-line-mode, if bash buffer is not clear first, the original text will be left in the front of edited line, I tried to first kill the line in term-char-mode then paste it in ...
0
votes
1answer
18 views

How to use emacs CLI on a Linux server remotely from Windows

I have emacs-nox installed on a CentOS 6.5 server. I had been using PuTTY from Windows to remote into this server. However, I discovered that in emacs, I cannot hit Ctrl+A (somewhat like other ...
0
votes
0answers
29 views

Configuring Emacs tabs to behave like Sublime Text?

I love Emacs, but the only thing that annoys me about it is I can't get the damn tabs right. This is my configuration file: (global-hl-line-mode 1) (setq indent-tabs-mode t) (setq-default ...
1
vote
2answers
24 views

How do I remove the extra bash-3.2$ from shell-mode?

Summary The first line of shell-mode has an extra bash-3.2$ prompt before my custom dotfiles (master)$ prompt. I tried writing PROMPT_COMMAND='' in my ~/.bashrc according to an earlier Stack ...
1
vote
2answers
28 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
25 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
23 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
18 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 ...
1
vote
1answer
35 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
42 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
37 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
1answer
46 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
25 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
45 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
1answer
33 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
15 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
49 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
41 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
35 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
42 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
25 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
53 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
21 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
48 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
28 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
2answers
25 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
32 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
46 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
49 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
36 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
39 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
28 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
36 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
21 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
16 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
26 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
28 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, ...