Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Favorite emacs minor mode? [closed]

Tags:

I just discovered tabbar, a minor mode that provides firefox like tabs in emacs.
I also modify org-mode into a minor mode and use it with other major modes for code folding and organizing my code, for example: (ahk-org-mode )
What are your favorite minor modes.

Are there major modes that you have turned into minor modes so you can use them with other major modes ?

like image 617
Naveen Avatar asked Jun 25 '10 08:06

Naveen


People also ask

What are minor modes Emacs?

A minor mode is an optional editing mode that alters the behavior of Emacs in some well-defined way. Unlike major modes, any number of minor modes can be in effect at any time. Some minor modes are buffer-local, and can be turned on (enabled) in certain buffers and off (disabled) in others.

How do I set mode in Emacs?

Usually, the major mode is automatically set by Emacs, when you first visit a file or create a buffer (see Choosing File Modes). You can explicitly select a new major mode by using an M-x command.

What is the default mode in Emacs?

The standard default value is fundamental-mode . If the default value is nil , then whenever Emacs creates a new buffer via a command such as C-x b ( switch-to-buffer ), the new buffer is put in the major mode of the previously current buffer.

What is CC mode?

CC Mode is a GNU Emacs mode for editing files containing C, C++, Objective-C, Java, CORBA IDL (and the variants PSDL and CIDL), Pike and AWK code. It provides syntax-based indentation, font locking, and has several handy commands and some minor modes to make the editing easier.


1 Answers

  • autopair - Automatically pair braces and quotes in emacs like TextMate

  • paredit - ultimate sexp editing mode, one cannot do serious Lisp programming without it

  • flyspell and cousing flyspell-prog-mode - great on the fly spellchecking

  • eldoc - on the fly hints about function parameters, etc in several languages like Emacs Lisp, Perl...

  • yasnippet - template expansion framework ala TextMate bundles

  • auto-revert-mode - reverts buffers, if underlying files have been changed externally

  • hl-line - highlights the current line

  • windmove - easier navigation between many open windows in Emacs

  • show-paren-mode - highlight matching parenthesis, making it easier to spot errors with their pairing

All those minor modes are simply Godsend! I cannot live without them and they make my whole editing experience that much more enjoyable and productive...

Btw you can see much of the customizations and modes that I use in my configuration publicly available here(most of the minor mode stuff is in misc-config.el). I also recommend to everyone to follow the excellent blog Emacs Fu, when I've picked many interesting modes over the past couple of years.

like image 155
Bozhidar Batsov Avatar answered Oct 14 '22 00:10

Bozhidar Batsov