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

learn more… | top users | synonyms

0
votes
1answer
25 views

how to change the right control key in a super/hyper modifier in emacs

I'd like to change the right control key along into a "super" modifier and right alt key into the "alt" modifier (not the Meta) in Solaris and Linux (as I know how to do that in Windows using ...
2
votes
2answers
194 views

How can I add a shortcut of App to Spotlight database?

I want to use nightly builds of Emacs in OSX so I've done like this. $ brew install emacs --cocoa --use-git-head --HEAD $ mv /Applications/Emacs.app /Applications/Emacs.app.stable $ ln -s ...
0
votes
0answers
18 views

emacs gnus setup for email sending

I setup emacs for receiving my email. my settings like this: (setq gnus-secondary-select-methods '((nnml ""))) (setq mail-sources '((pop :server "pop.163.com" :user "username" ...
1
vote
4answers
232 views

Emacs not loading init file when run as sudo

Emacs loads my .emacs.d/init.el startup file just fine when run as a regular user, but refuses to load it when run as sudo emacs file.type. I have tried changing the owner of .emacs.d to root with no ...
0
votes
1answer
77 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 ...
36
votes
8answers
30k 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
1answer
73 views

Emacs Melpa and Marmalade

Does it make sense to include both Melpa and Marmalade package repositories with emacs HEAD. And if so, what is the best way to ensure that one is using the latest and/or correct package, when many ...
3
votes
1answer
61 views

Emacs - move cursor back after mark-whole-buffer & indent-region

I'm Emacs newbie and for automatic re-formating of my source codes in Emacs I've created simple macro using mark-whole-buffer and indent-region commands, mapped to C-j shortcut: (fset ...
0
votes
1answer
49 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
0answers
12 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, ...
8
votes
4answers
5k views

How to awake emacs gui after pressing ctrl+z

I'm using emacs gui in Gnome. After pressing ctrl+z, emacs window is minimized. However, if I bring the window to front, it doesn't respond any key press and mouse event. I searched the web only found ...
5
votes
1answer
658 views

Enabling Italics, Underline on Emacs, Xterm and Putty

I'm using a Ubuntu (11.04 Server Edition) virtual machine as my development environment. It doesn't have a desktop environment since I don't think its necessary and I want to keep it lightweight. I'm ...
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 ...
20
votes
3answers
4k views

emacs does not open a file from argument and syntax highlight does not work

In my latest ubuntu box, When I type for example emacs ~/.bashrc, Emacs will start but not open .bashrc. This is true for any file I pass in. I've used Emacs for several years, and have never ...
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 ...
11
votes
4answers
2k 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
14 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
18 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 ...
2
votes
3answers
90 views

Notepad++/other editors: How to view same file in multiple columns with auto scrolling?

Is there any editor that allows me to have two columns, where the second column picks up after the last line of the first column? I don't mean cloning like in Notepad++ where I have two open copies of ...
0
votes
0answers
12 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
17 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: ...
1
vote
1answer
48 views

Single column completion?

TL;DR: Is it possible to make emacs use single-column completion? When using emacs' completion mechanisms and there are multiple possibilities, then completions are displayed in a separate window, ...
0
votes
1answer
24 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 ...
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 ...
3
votes
2answers
161 views

How can I get the shell-script-mode in Emacs to intepret #PBS -S /bin/bash to be a bash shell code?

I am using Emacs on a LINUX system that uses Portable Batch System (PBS) for controlling the use of resources. The PBS scripts require "#PBS -S /bin/..." as the first line in the script to declare the ...
6
votes
4answers
2k views

Emacs 24: Loading a package installed via ELPA

I have just installed the cmake-mode package in Emacs 24 using: M-x package-install cmake-mode I can see the package at: ~/.emacs.d/elpa/cmake-mode-20110824, and I can load it using the instruction ...
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
0answers
14 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
40 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 ...
8
votes
2answers
186 views

Emacs line number

I am having problems obtaining a line number while within an emacs buffer. I have the following number in my initilization file: (setq line-number-display-limit 2000000), and I have verified that line ...
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 ...
2
votes
2answers
413 views

How do I make Emacs remember my FTP logins (on Windows)

I've followed the instructions here on making a .netrc file to store my FTP logins. I don't know where to put this file though. I've tried it in various places, but Emacs doesn't seem to recognise it. ...
0
votes
0answers
35 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 ...
0
votes
2answers
27 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 ...
1
vote
2answers
28 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 ...
10
votes
4answers
5k views

How do I complete file paths in emacs?

Say for instance I'm editing a config file and I want to type in a path. Is there a plugin for emacs that lets you complete a file path in that buffer? I've searched for this and there's like a ...
0
votes
1answer
108 views

Different font size when running emacs and emacsclient

In my .emacs file, I setup font size like: (set-default-font "Source Code Pro 10") If I run emacs as standalone program, i.e. emacs aFile.c, the font size looks correct. But if I run emacs using ...
2
votes
3answers
952 views

Make emacs explicitly copy to/from the X11 selection and clipboard buffers?

In vim you can explicitly copy/paste to/from the X11 selection buffer and clipboard buffer by using "*y and "+y, respectively. My emacs is (apparently -- it's not intentional on my part) set up to ...
5
votes
2answers
422 views

Why can't I bind Ctrl-Shift-W in Emacs?

I'm trying to bind Ctrl+Shift+W to something in emacs under Ubuntu. Nothing happens when I press that key combination. When I call describe-key on that key combination, nothing happens. Is Ubuntu ...
1
vote
1answer
245 views

Running emacs in GNU Screen overrides .emacs settings for [home] key binding in FreeBSD 8.2

If I use the following .emacs file, I am able to go to the beginning/end of the current line using the home/end keys as I would expect. (keyboard-translate ?\C-h ?\C-?) (add-to-list 'load-path ...
1
vote
2answers
29 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 ...
2
votes
1answer
24 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
19 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 ...
1
vote
1answer
26 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 ...
4
votes
5answers
10k views

How to do select column then do editing in GNU Emacs?

I've been using ViM, TextMate, and GNU Emacs for years. For example here is the text I want to edit foo foo foo And here is the text result I want to have bar foo bar foo bar foo When I'm on ...
1
vote
5answers
3k 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
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
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
257 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 ...