A text editor, usually characterized by its extensibility. Often described as "the extensible, customizable, self-documenting, real-time display editor."
1
vote
1answer
96 views
How to disable Emacs gnuclient warning on kill-buffer
When I run M-x kill-buffer for a buffer which was openend via gnuclient, I first get this prompt...
Kill buffer (default 'my-buffer-name'):
Then I get a second prompt/message...
Buffer ...
2
votes
1answer
305 views
Defining key sequences in Evil-mode Emacs
I couldn't find any instructions on defining key sequences in the Evil doc.
The example given by the developers only covers a single key.
(define-key evil-normal-state "w" 'foo)
What do I need to ...
7
votes
1answer
442 views
How to get current buffer's filename in emacs?
One of the main features I miss about Vim, is that it always saves the filename of the current file in the % buffer (more info). That allows launching commands easily like:
;; compile current file
:! ...
5
votes
1answer
191 views
Emacs mode for man pages
I'm translating man pages, and have run in to a few problems with Emacs.
How do you specify language? (With man, it looks like this man -Lsv shutdown for the Swedish "sv" subdirectory, if ...
4
votes
2answers
239 views
Replace require statements by autoload in .emacs file to improve performance
According to these posts:
How can I make emacs start-up faster
a-nickels-worth.blogspot.de/effective emacs
one can somehow replace require and load statements in the .emacs file to speed up the ...
6
votes
3answers
274 views
Open terminal from emacs
Is there a fast way (keyboard shortcut) to open a terminal emulator (in my case urxvt) in the same directory as the file in the current emacs buffer?
4
votes
1answer
177 views
Change view in emacs dired mode
What options are there to change the view of a directory in emacs dired mode? How to apply it? How can I change it on the fly?
In particular I want to know:
How to make it show the file sizes in ...
3
votes
0answers
166 views
Emacs complains: font 'serif 10' is not defined
I am running Linux Mint 12 and trying to start emacs but keep getting this error:
font 'serif 10' is not defined
It seems obvious to me that I don't have the correct font. However, I cannot for ...
2
votes
2answers
212 views
emacs - paste text from clipboard without formatting
I am using Emacs 24 for MacOSX and having some problem with pasting code from clipboard to Emacs. The code that I selected usually already nicely formatted (with tab, ident, ...).
However, when I ...
3
votes
2answers
119 views
Wiki for emacs users
I am looking for a new wiki software for a small private network. Since all users are very addicted to emacs, it would be nice to make everything "emacs compatible". What wiki software is most ...
0
votes
0answers
136 views
Adding intellisense features to emacs for perl programming [closed]
How do I go about adding Intellisense-like features to emacs for perl programming? In particular, I'm looking for:
Auto-complete/suggestions
Syntax highlighting
Indentation
I looked around on ...
2
votes
1answer
72 views
Make 'CTRL-/' behave the same in vtty and xterm
When I press Ctrl+/ in a graphical terminal (e.g. xterm) I get "undo". However, in a virtual terminal (e.g. Ctrl+Alt+F1) I get "backspace".
In practice I run into this when I'm using emacs in a ...
5
votes
1answer
733 views
Korn Shell: End, pgup, pgdown, and delete key not working
So basically my End, Pageup/Pagedown, and Delete key are not working in ksh93. I'm running FreeBSD by the way.
My arrow keys are working, and so is my home key.
Those keys work when I put this in my ...
3
votes
1answer
114 views
Emacs: Different users, different themes, same init file
I use emacs at work, where I usually connect to the system with two different users:
myuser
commonuser
The former is my own personal user, whereas the latter is shared by the whole team to manage ...
2
votes
0answers
122 views
linum auto-activation in .emacs fails
I added the following lines to my .emacs.d/init.el
to auto-activate linum at startup:
(require 'linum)
(global-linum-mode 1)
(setq linum-format “%d “)
But no way, i still have to manually M-x ...
4
votes
1answer
149 views
How can I use two modes in emacs (markdown and auctex)?
When I edit markdown in emacs I use markdown-mode. However I often have to type some math formulas in the markdown file (processed by mathjax). However for those math parts markdown mode is not very ...
7
votes
2answers
91 views
Ido mode and recently opened files
I recently switched to ido-mode in emacs.
When I run C-x C-f (ido-find-file) pressing M-r to do a regex search in the recently used files doesn't work any more.
Is there a way to enable this regex ...
2
votes
1answer
119 views
emacs python2.7
I would like to have emacs work as a python ide for me. I can't seem to find how to compile from within emacs. I'm using python2.7 but when I do M-x python-mode it seems to compile using python2.7. Is ...
4
votes
1answer
123 views
Org-mode tables: How to insert result of a system command?
In Org-mode I would like to insert the result of a Unix command in a field. For instance, consider I have the following table:
| / |
| /bin |
| /usr/bin |
| /lib |
| /usr/lib |
I ...
4
votes
1answer
146 views
emacs dedicated completion window
To prevent confusion, I only run one "window" of emacs and so I use window in the emacs sense. I'm looking to get a window split which, let's say 70 in width, contains the completions buffer on the ...
2
votes
3answers
138 views
Emacs Message: save sent mails
How do you make Emacs Message (C-x m) save outgoing mails?
Is there a standard way to do this?
You could C-x C-s but this is inefficient and easy to forget, besides, you can't be 100% it is the mail ...
1
vote
1answer
121 views
Using emacsclient with custom emacs in $PATH
I want to use emacs command as a substitution for emacsclient -c -a "", which according to man connects to an existing emacs daemon, or creates a new daemon and connects to it otherwise. So i created ...
1
vote
2answers
896 views
How to make a program which run from shell still live after close terminal? [duplicate]
Possible Duplicate:
How do I prevent a script from terminating when the shell exits?
I use gnome-terminal, and I run emacs under the terminal in the background by executing emacs &, but ...
3
votes
0answers
86 views
Configure Emacs to use Chrome as the web browser of choice?
Using Emacs on a Linux system I click:
Scala>Browser Scala API
which produces a terminal window with this message:
/usr/bin/xterm: Can't execvp lynx: No such file or directory
How do I inform ...
1
vote
0answers
56 views
JS indentation on Emacs
I'm following the Douglas Crockford's code convention, but I can't get the correct identation in JS mode in Emacs. I tried to customize the mode, try another mode like js3 but nothing seems to work.
...
3
votes
4answers
234 views
Code templates with emacs
How can I configure emacs to generate some code skeleton?
For instance, for C files:
#include <stdio.h>
#include <stdlib.h>
int main (int argc, char **argv) {
return EXIT_SUCCESS;
...
2
votes
1answer
40 views
Set EDT emulation by default for Emacs
Using the Emacs editor I can set it to enable OpenVMS EDT editor keypad mode with this command:
M-x edt-emulation-on
How can I set it so that whenever I invoke Emacs, EDT emulation is the default ...
3
votes
2answers
510 views
In emacs (or other editor) how to display the byte offset of the cursor?
The question indicates my preference to use emacs, but the overriding issue is that I want to be able to do a normal text search and somehow see/copy-paste the byte-offset of the matched text.
To ...
2
votes
1answer
224 views
Emacs: query-replace, regular expression, reuse of search result
How do I combine something like query-replace with a regular expression search-and-replace that in part reuses the search result?
In my case, how to transform
The programmers are "sort of" ...
1
vote
1answer
190 views
How to disable X support for emacs
After I install emacs package on Debian 7 (Wheezy), when I start it up on a GUI terminal, it opens a GUI (GTK-based). I would rather it just run from the terminal.
4
votes
1answer
149 views
Emacs commands in xterm
I found that the commands I used to use in gnome-terminal/bash, those I learned in emacs, are only partially working in xterm/bash. In some cases, I get strange chars like ÿ, æ, and â instead. Do you ...
2
votes
1answer
222 views
Installing vim/emacs on solaris 8
At my new job, they want me to use a solaris 8 operating system, but all my coding experience has been on linux. Linux had a lot of tools built into the system, but it seems like the solaris I'm using ...
2
votes
1answer
51 views
How to ensure that a custom emacs macro operates on region?
Suppose I define a custom macro in emacs in my .emacs file. Is there a way to ensure that it works only on the region I marked in a buffer before executing my command, without going into details of ...
8
votes
1answer
2k views
How do I configure Emacs to use 'ispell' on Mac OS X?
I'm using brew as my package manager for both Emacs and ispell. I have both installed. Doing a quick google, I was unable to figure out how to tell Emacs where ispell is and to load the appropriate ...
2
votes
1answer
361 views
Use WINDOWS key instead of ALT key in xmonad
I use xmonad + emacs. Both use ALT key heavily. So there are conflicts sometimes.
My keyboard has WINDOWS key on it. I would like xmonad to use that key instead of ALT.
My current ...
1
vote
1answer
230 views
Customize Emacs Ruby Mode for PuppetLabs conifguration
I predominantly use emacs for editing my Puppet configuration files.
I use the following settings in my .emacs to load Ruby mode and use it for Puppet config files (*.pp):
(autoload 'ruby-mode ...
3
votes
1answer
141 views
Emacs shortcuts in term mode
I've a question about using Emacs as editor and terminal.
I split my window into different windows with C-x 3for example. One of the generated Window is used as terminal with M-x term. Usually I ...
3
votes
1answer
100 views
End of lines problem in emacs when editing markdown texts via It's All Text
I want to edit markdown source in emacs using the It's All Text plugin for firefox.
In markdown you have to add two spaces to the line-end to get a new line. Suppose there is such a newline in a ...
1
vote
0answers
185 views
Is there a better alternative to sudoedit?
What I really hate about sudoedit is the fact that it always uses a different filename. I'm using emacsclient and when editing a file twice I'm left with two useless buffers. Sometimes I even happen ...
2
votes
1answer
77 views
Why does Emacs make it difficult for me to have two frames open the same buffer?
I have 2 frames. I switch the buffer in first frame to buffer A. When I try to switch the buffer in the second frame to buffer A, Emacs brings the first frame forward. What I want is to open buffer A ...
2
votes
1answer
55 views
Emacs + whitespace: ignoring 'normal' spaces
I would like to use whitespace to detect wrong whitespace (i.e. trailing whitespace on line, tabs instead of spaces etc.).
However I would like to still have spaces displayed as spaces. I tried to ...
3
votes
3answers
325 views
How do I set up a .emacs initialization file?
I am using Linux Fedora 13 (Constantine) and emacs 23.1.1. I am trying to set up a .emacs file for initialization, by using emacs itself to edit and save a file .emacs in my home directory. However, ...
2
votes
1answer
229 views
Change column width in an emacs Ibuffer on the fly
Is it possible to change the column width in an emacs Ibuffer on the fly?
3
votes
1answer
83 views
In Emacs, editing C, sort-fields not working, or stating sole completion. Why?
In Emacs, editing C, and trying to execute sort-fields doesn't seem to be working. I enter M-x sort-fields after highlighting a region. At one point it was letting me pass a field number, but then ...
9
votes
6answers
600 views
Text Manipulation Across multiple lines
I Have a file that has text like this:
AAAA
BBBB
CCCC
DDDD
1234
5678
9012
3456
EEEE
7890
etc...
And i want to match up the Alphabetic lines with the Numeric lines so they are like this:
...
2
votes
1answer
250 views
Why dialog doesn't support emacs shell on Debian?
Dialog is a utility that provides dialog boxes from shell scripts, you may have seen them in aptitude during upgrades. When i use Emacs shell (M-x shell) and type sudo aptitude safe-upgrade, i get the ...
2
votes
1answer
121 views
How to bind emacs abort to key
This is from a .el file loaded in my .emacs file. What do you think?
;;; Sun keyboard bindings
;; the below line does not work:
;; when <cancel> is pressed, the minibuffer echoes "Quit"
;; but ...
2
votes
2answers
251 views
GNU Screen and Emacs
I upgraded recently to OpenSuSE 12.1 from 11.3 and now when I open any files in emacs from inside a screen session, I get a blank buffer. Let's say I open it as:
emacs myFile.txt
it will open to an ...
1
vote
0answers
99 views
Control + Function Key association in Emacs [closed]
I am trying to associate the keyboard shortcut
Control + F10 with gud-step in GUD in Emacs.
I thought the following would do the trick, but it doesn't:
(define-key gud-mode-map '[C-f10] 'gud-step)
...
1
vote
1answer
517 views
Set default font size in Emacs 23.4?
I use the following in my .emacs to set my default font to Ubuntu Mono:
(set-face-attribute 'default nil :font "Ubuntu Mono")
However, the defauly font size is too tiny for me. In my menubar I see ...
