Questions tagged [emacs]

A text editor, usually characterized by its extensibility. Often described as "the extensible, customizable, self-documenting, real-time display editor." There is an Emacs-specific SE site for specialized questions.

GNU Emacs is an extensible, customizable text editor. A large part of the Emacs code base is written in a dialect of Lisp called Emacs Lisp, and the editor can be customized and extended in this language.

Emacs provides context-sensitive editing modes with syntax coloring, is self documenting, has full Unicode support and extensions to do most anything. Die-hard Emacs users do most everything from within Emacs: write code, compile, run, debug, read/compose email, browse the web, do project planning, etc.

Useful Links

Wisdom from the stack

595 questions
24
votes
1 answer

How do I stop emacs from asking me if I want to load a large file?

When I open a large file in emacs, I get a message saying 'foo.bar file is large; really open?' How do I stop emacs from asking me this question all the time? In other words, if I open the file, I want to open the file, no matter how big it is.
15
votes
1 answer

Can I have emacs automatically indent my whole code after it is all written?

My emacs is set up to automatically indent my code as I write it and also re-indent things correctly if I push tab on any line that got misaligned somehow (usually because I changed the code). I am wondering, though, if there is any command in emacs…
NeutronStar
  • 1,671
15
votes
3 answers

How to kill a process in a terminal inside emacs

When I code, I usually use multiple buffers in emacs. Some buffers with my code, and a buffer with a terminal emulator (M-x term), There I compile, execute interpreters, etc. When I get an infinite loop in some computation, I cannot kill my process…
13
votes
1 answer

Showing type of newline character in Emacs

How can I have Emacs display the type of new character? I am looking for something similar to what Notepadd does (see below). I read that Emacs comes with M-x whitespace-mode but this doesn't seem to show the type of ASCII control character the file…
13
votes
5 answers

What are some excellent Emacs utter beginner resources?

I administrate a couple of servers and do automation with both python and ruby at times. I've seen some awesome Youtube videos of users with multiple open windows, logged in background chats, and deep code completion, all done with emacs. I'm…
13
votes
3 answers

Emacs slow loading time with AUCTeX on TeX files

I installed the auctex and emacs packages on two Xubuntu 14.04 computers, both of which have been working fine. Emacs itself works fine on both, but now with the auctex package installed, when I load a TeX file (even just an empty one) I have a six…
12
votes
1 answer

emacs: recognising the shebang line

How can I configure Emacs to recognise certain she-bang lines? it recognises the shebang line: #!/usr/bin/env ruby but not the shebang line of #!/usr/bin/env ruby1.9 I figure there must be an alist somewhere with the list of scripting languages…
HandyGandy
  • 2,209
11
votes
1 answer

Difference between "define-key global-map" and "global-set-key" in Emacs

Looking at how people program their keyboard shortcuts in Emacs, I have noticed two different patterns: One uses: (global-set-key (kbd "M-N) 'select-next-window) The other one: (define-key global-map (kbd "M-N") 'select-next-window) What's the…
11
votes
2 answers

How to stop emacs server

I started a Emacs in my terminal, and then started running Emacs server inside it by M-x server-start. Now I would like to cancel running the Emacs server without exiting the Emacs process. There seems to be no command for that. How can i do that?…
Tim
  • 101,790
10
votes
2 answers

Emacs move to next whitespace

In emacs there are the functions forward-word and backward-word. Are there also functions which move the point to the next/last whitespace?
Julia
  • 415
10
votes
1 answer

Is it possible to name windows in emacs

I would like to be able to name a window in emacs, and specify that window when opening and creating new buffers. I've looked through the manual but all I can find is find-file-other-window, which doesn't allow me to specify which window to open…
9
votes
1 answer

Emacs: make portion of buffer readonly

I sometimes edit files in emacs where portions of the file are documentation or something else that shouldn't be edited, and another portions are "play areas" where I'm free to edit and create new text. Question: can I make a portion of an emacs…
user2267
9
votes
3 answers

Emacs text-scale-adjust causes line numbers column to incrementally shrink and disappear

I've set up emacs to display line numbers (global-linum-mode 1), and it works until I start enlarging the text via text-scale-adjust The line numbers column starts to shrink, and disappears entirely after a few increments. When it has fully…
Peter.O
  • 32,916
9
votes
1 answer

How can I get recentf-mode to work with emacs server/client?

I like using recentf mode in Emacs which produces a list of files I have recently opened. This list is persistent between sessions, so I can get to files I used a fairly long time ago. However, I recently started using Emacsclient to connect to an…
9
votes
2 answers

emacs, How to copy region, and leave it highlighted?

I'm happy enough with the default M-w as (kill-ring-save) which loses the region's highlighting upon running the command. I don't want to alter its behaviour, but I do want to re-bind to perform a similar action and maintain the region's…
Peter.O
  • 32,916
1
2 3 4 5 6 7 8