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.
36
votes
2answers
17k views
How do I display line numbers in emacs (not in the mode line)?
I know how to display line numbers (and columns) in the mode-line, but I'd like emacs to display the line numbers for all the lines on the left-hand side. I've seen this done in vim and other text ...
26
votes
11answers
17k views
Which version of EMACS makes the best use of the Mac GUI?
On Windows and Ubuntu I use GNU EMACS, but FSF doesn't provide binaries for the Mac
I have a decent version that came with Snow Leopard, but just running in the bash terminal. Is there a version ...
20
votes
2answers
900 views
Enable Emacs-like keybindings scheme for all QT applications
As for GTK apps under Gnome environment it's possible to set all applications to use Emacs-like input scheme:
$ gconftool --set -t string /desktop/gnome/interface/gtk_key_theme Emacs
$ gconftool ...
19
votes
5answers
9k 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. ...
17
votes
11answers
4k views
What features does Emacs have that Vim hasn't?
What features am I missing when I use Vim instead of Emacs?
16
votes
7answers
9k views
How can I open a file read-only from command line with emacs/vi/vim
Is there a way to tell emacs/vi/vim (from the command line) that I want to view the file in view-mode or read-only.
I know how to open a file as read only if emacs/vi/vim is already running.
16
votes
3answers
5k views
C-x C-c not working in Emacs 23.1
I am using Emacs 23.1 with Cygwin but when I try to exit by pressing C-x C-c it says C-x C-g is undefined and I am not able to exit.
16
votes
5answers
6k views
Is there any *good* HTML-mode for emacs?
I love emacs,
and I want to do my web-programming work in it,
but I can't find a way to get it to edit HTML properly.
I mean it's seriously awful.
It will do HTML fine, but not PHP, javascript, ...
15
votes
2answers
1k views
Jump to first non-whitespace character in line in emacs
I'm looking for the emacs equivalent of vi's ^.
How can I move my cursor to the first non-whitespace character in a line?
15
votes
5answers
13k 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 ...
15
votes
4answers
4k views
Syncing Google Calendar [Gcal] and Emacs Org-mode? Is it possible?
It would be amazing if I could sync Gcal and emacs org-mode, is it possible?
14
votes
4answers
2k views
Why latest emacs version don't support Windows 7 taskbar?
I have downloaded latest emacs for Windows here, but starting it on Windows 7 shows a taskbar icon that ignores right-click and so can't be pinned I have searched Google and found a lot of bug reports ...
14
votes
4answers
3k views
Word count for LaTeX within emacs
I want to count how many words my LaTeX document has in it. I can do this by going to the website for the texcount package and using the web interface there. but that's not ideal.
I'd rather have ...
13
votes
2answers
1k views
How to get back to an active minibuffer prompt in emacs without the mouse
In emacs, sometimes I will be in the middle of finding a file or switching buffers or doing something in the minibuffer, and I will click somewhere else for some reason. When I go back, the only way ...
13
votes
1answer
1k views
How to split Emacs over a dual monitor?
I would like to split Emacs over a double monitor. How do I do that?
13
votes
1answer
646 views
Emacs as daemon on OS X with window-system
I'm running gnu emacs 23.3.1 cocoa build on OS X 10.6.
I added the following to ~/Library/LaunchAgents/gnu.emacs.daemon.plist so that it will start a daemon and automatically restart emacs if I ...
11
votes
3answers
3k views
How can I hide the Tool-bar in Emacs persistently?
I have installed emacs23 on Linux Mint 8. I would like to hide the toolbar, and I can do it with Options > Show/Hide > Tool-bar. But the Tool-bar comes back next time I start emacs. How can I hide it ...
11
votes
2answers
8k views
Getting Gmail in Emacs?
I'm trying to learn Emacs, and I think that getting gmail right in it would be cool. I've tried a but of tutorials online, but I couldn't figure out what a lot of them were talking about. A lot of ...
11
votes
3answers
5k views
How can I run Mac OSX graphical Emacs in daemon mode?
Short form: I want to run the Mac OSX version of Emacs found on
http://emacsformacosx.com/ as a daemon, with graphical and text clients
connecting to it as-needed.
In detail, here is the workflow I ...
10
votes
4answers
5k views
How do I fix my prompt in emacs shell-mode?
I'm doing some programming on a colleague's machine. He has a version of emacs (23.1.1) I haven't used before. My problem is that when I go to shell-mode, my bash prompt looks like this:
...
9
votes
4answers
686 views
Can I create directories that don't exist while creating a new file in emacs?
In emacs, I create a file by visiting it with C-x C-f. Let's say I'd like to create /home/myself/new_directory/file.txt.
If new_directory does not exist yet, is there a way to have it get created ...
9
votes
3answers
2k views
Ubuntu: Keep emacs in the terminal
I installed emacs on Ubuntu 10.10 using sudo apt-get install emacs-snapshot-gtk
I prefer my emacs in the terminal and everytime I emacs something, it pops up in some fancy GUI window. How do I go ...
9
votes
3answers
429 views
Edit one file in two different buffers in emacs
I would like to open the file foo.bar twice (or more) in emacs, so I can edit two different parts of it simultaneously. Is it possible? Probably the better question is, how to do it? Is there a way to ...
9
votes
3answers
1k 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 ...
9
votes
3answers
1k views
9
votes
1answer
736 views
What is emacs keybinding s-u?
When I run revert-buffer in emacs it says:
You can run the command `revert-buffer' with s-u
I've never seen any keybinding beginning with s- before. What key is that?
My emacs version is GNU ...
9
votes
1answer
714 views
Re-file outline tree into new org-mode file?
I'm just getting started with org-mode and imagine a workflow whereby I capture new tasks and notes in an org-mode "inbox" file. For tasks that grow into projects, I would imagine refiling them into a ...
8
votes
4answers
3k views
How to make Emacs read buffer from stdin on start?
With Vim I can easily do
$ echo 123 | vim -
Is it possible to do with Emacs?
$ echo 123 | emacs23
... Emacs starts with a Welcome message
$ echo 123 | emacs23 -
... Emacs starts with an empty ...
8
votes
3answers
1k views
Linewrap in Org-mode of Emacs?
Does Org-mode of Emacs support linewrapping?
I know in the "regular" mode of Emacs there will just be a little sideways-u-turn on the right and on the left on the line after, and there's no scrolling ...
8
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 ...
8
votes
3answers
1k views
Emacs org mode as a work diary
Is emacs org mode a good choice if you want to maintain a work diary?
I have tried to use it and archive old tasks (TODOs) but is there an easy way see which tasks I worked on for example last week ...
7
votes
2answers
1k views
How do you run the previous command in emacs shell?
I am in terminal mode on Ubuntu, and I'm running emacs with 2 buffers open, one is a ruby file, and the other is a shell (opened by typing M-x shell ), and when I switch to the shell buffer, I want to ...
7
votes
3answers
2k 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 ...
7
votes
7answers
2k views
Fullscreen Emacs in OSX
Is there any way of using Emacs in fullscreen mode in OSX.
I'm currently using Emacs from http://emacsforosx.com/
7
votes
3answers
1k views
I'm an Emacs user. How do I learn Vim?
Most of the time, I use Emacs. However, I've decided to try to learn Vim. I'm happy with Emacs, I just am trying to avoid having it turn into Maslow's Hammer. I've seen a few tutorials, but I have ...
7
votes
3answers
1k views
Cross platform, gmail compatible email client for Emacs
I spend alot of my time in Emacs, and move between Windows, Linux, and Mac OS at least once a day since these are the machines my company has available to use. I spend alot of time in gmail using ...
7
votes
1answer
121 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 ...
7
votes
1answer
1k views
What difference will GTK3 support make for Emacs?
Emacs 24 is said to come with GTK3 support. What difference will this make (for the users)?
7
votes
1answer
580 views
emacs ORG-mode “headless” export-as commands?
When I use org-export-as-latex or org-export-as-html orgmode turns my buffer into a .tex file or .html file. But I don't want all the extra junk that it adds to the file: I want to handle the ...
7
votes
2answers
715 views
Setting major-mode specific keybindings in emacs
In my .emacs file, I want to add a key binding for a specific major mode (setting coffee-compile-file to C-c C-c in coffee-mode).
I've found a lot of instructions on using local-set-key and ...
7
votes
2answers
4k views
Emacs Auctex: How do I open the pdf in evince at the current cursor position
I use emacs auctex to write latex files. Since the text is pretty long, and I tend to change things in different places, I would like emacs to open the pdf so that the position in the text is shown ...
7
votes
1answer
962 views
Emacs opens files in a new frame when opened with “open -a”
I want to be able to invoke Emacs from the command-line, and either start graphical Emacs if it isn't running or visit a file in an already running Emacs. I tried to do this with emacsclient which I ...
7
votes
2answers
430 views
Rebinding <s-mouse-1> to <mouse-2> in Emacs on OS X
I use a macbook pro and thus am subjected to a trackpad with one button. I can, of course, do mouse-1 by clicking and mouse-3 by clicking with two fingers, but there isn't much I can do about a middle ...
6
votes
4answers
3k views
How to run 'emacs' in the terminal emulator without a separate window?
I am looking to switch to Emacs from Vim and one thing that is keeping me away is that Emacs opens up a separate window of its own when run under X. Can I get the same behavior for Emacs as it does ...
6
votes
3answers
2k views
How to jump back to the last position of the cursor in emacs?
In emacs, when i am editing a program, and miss-input some command and make the cursor jump to somewhere in other files. Is there a short-cut key or command to jump back to the last location of the ...
6
votes
4answers
3k views
How to get code completion in emacs?
Hey,
I know that emacs supports code completion. But to be honest I have never been a good FAQ reader, at least for something that I'm completely new to.
So I wonder what I need to download and how to ...
6
votes
2answers
1k views
Problem with GNU Screen when using Emacs C-x C-s (save-buffer)
When I am using emacs under GNU Screen, if I call C-x C-s screen hangs and does not respond to any keyboard input.
I can't reproduce this, but at least one time per day I have to kill my screen ...
6
votes
5answers
12k views
Where is .emacs file?
I downloaded emacs 23.1 from gnu's ftp. untarred it and built it after configuring.
I do not find .emacs file in my home directory or anywhere in my system ! Am i missing something ?
6
votes
1answer
305 views
Turn off prompt when saving file in emacs
How can I turn off the prompt when I try to save the file in Emacs?
I mean every time I do C-xs, emacs always ask "Save file xxx?"
How can I disable this prompt?
6
votes
7answers
204 views
Open a Console Based Editor with limited access
I have a script that will be executed through SSH. My SSH server is configured to always trigger this script, so the user doesnt have access to actual machine.
One of the features of this script is ...