My personal emacs settings, and the ones used in @emacsrocks
See the codeAn ever-changing set of emacs settings. Micro-optimizations are super fun. These are used in the Emacs Rocks screencasts. You can also see some thoughts behind the settings on my What the .emacs.d!?-blog.
Please note: I have rebooted my emacs configuration, so this is no longer being used or maintained.
To grab all the dependencies:
git clone --recursive git://github.com/magnars/.emacs.d.git
The first time you start emacs, it will install some additional packages that are best handled by the package manager.
I use Cocoa Emacs, installed like this:
brew install --cask emacs
If you want to use my settings straight out of the box, here are some things to note:
I recommend starting with a blank emacs + Technomancy's better-defaults package, and then dig through this repo for useful nuggets, instead of forking it directly.
The key bindings are optimized for a norwegian keyboard layout.
Start by reading up on all the cool stuff in key-bindings.el.
You quit emacs with C-x r q, mnemonic Really Quit.
Find file in project with C-x o, in dir with C-x C-f, recent with C-x f
Add your user- and project-specific stuff in .emacs.d/users/[machine name]/*.el
C-h is rebound to backspace, like in the shell. Get help on F1 instead.
Autocomplete with C-. (autocomplete entire lines with C-:)
expand-region is your friend. Find its bound key by doing F1 f er/expand-region
Undo with C-_ and redo with M-_. Watch the undo-tree with C-x u
Quickly jump anywhere in the buffer with C-ø then the starting letter of a word.
Indent and clean up white space in the entire buffer with C-c n
On a mac, the Meta key M is bound to Command.
I recommend rebinding Caps Lock to Ctrl and use that instead of the often badly placed Ctrl-key.
Watch emacsrocks.com
When you start using emacs for the first time, your habits fight you every inch of the way. Your fingers long for the good old familiar keybindings. Here's an overview of the most commonly used shortcuts to get you through this pain:
C Shorthand for the ctrl-keyM Shorthand for the meta-key (bound to cmd on my mac settings)S Shorthand for the shift-keyC-x C-f Open a file. Starts in the current directoryC-x f Open a recently visited fileC-x o Open a file in the current project (based on .git ++)C-x C-s Save this fileC-x C-w Save as ...C-x C-j Jump to this files' current directoryC-x b Switch to another open file (buffer)C-x C-b List all open files (buffers)C-space Start marking stuff. C-g to cancel.C-w Cut (aka kill)C-k Cut till end of lineM-w CopyC-y Paste (aka yank)M-y Cycle last paste through previous killsC-x C-y Choose what to paste from previous killsC-@ Mark stuff quickly. Press multiple timesC-g Quit out of whatever mess you've gotten yourself intoM-x Run a command by nameC-. AutocompleteC-_ UndoM-_ RedoC-x u Show the undo-treeC-x m Open magit. It's a magical git interface for emacsC-arrow Move past words/paragraphsC-a Go to start of lineC-e Go to end of lineM-g M-g Go to line numberC-x C-i Go to symbolC-s Search forward. Press C-s again to go further.C-r Search backward. Press C-r again to go further.C-x 0 Close this windowC-x 1 Close other windowsC-x 2 Split window horizontallyC-x 3 Split window verticallyS-arrow Jump to window to the left/right/up/downF1 t Basic tutorialF1 k Help for a keybindingF1 r Emacs' extensive documentation1,043 followers · starred Jun 2013
227 followers · starred Nov 2014
225 followers · starred Sep 2016
558 followers · starred May 2013
My personal emacs settings, and the ones used in @emacsrocks
See the codeAn ever-changing set of emacs settings. Micro-optimizations are super fun. These are used in the Emacs Rocks screencasts. You can also see some thoughts behind the settings on my What the .emacs.d!?-blog.
Please note: I have rebooted my emacs configuration, so this is no longer being used or maintained.
To grab all the dependencies:
git clone --recursive git://github.com/magnars/.emacs.d.git
The first time you start emacs, it will install some additional packages that are best handled by the package manager.
I use Cocoa Emacs, installed like this:
brew install --cask emacs
If you want to use my settings straight out of the box, here are some things to note:
I recommend starting with a blank emacs + Technomancy's better-defaults package, and then dig through this repo for useful nuggets, instead of forking it directly.
The key bindings are optimized for a norwegian keyboard layout.
Start by reading up on all the cool stuff in key-bindings.el.
You quit emacs with C-x r q, mnemonic Really Quit.
Find file in project with C-x o, in dir with C-x C-f, recent with C-x f
Add your user- and project-specific stuff in .emacs.d/users/[machine name]/*.el
C-h is rebound to backspace, like in the shell. Get help on F1 instead.
Autocomplete with C-. (autocomplete entire lines with C-:)
expand-region is your friend. Find its bound key by doing F1 f er/expand-region
Undo with C-_ and redo with M-_. Watch the undo-tree with C-x u
Quickly jump anywhere in the buffer with C-ø then the starting letter of a word.
Indent and clean up white space in the entire buffer with C-c n
On a mac, the Meta key M is bound to Command.
I recommend rebinding Caps Lock to Ctrl and use that instead of the often badly placed Ctrl-key.
Watch emacsrocks.com
When you start using emacs for the first time, your habits fight you every inch of the way. Your fingers long for the good old familiar keybindings. Here's an overview of the most commonly used shortcuts to get you through this pain:
C Shorthand for the ctrl-keyM Shorthand for the meta-key (bound to cmd on my mac settings)S Shorthand for the shift-keyC-x C-f Open a file. Starts in the current directoryC-x f Open a recently visited fileC-x o Open a file in the current project (based on .git ++)C-x C-s Save this fileC-x C-w Save as ...C-x C-j Jump to this files' current directoryC-x b Switch to another open file (buffer)C-x C-b List all open files (buffers)C-space Start marking stuff. C-g to cancel.C-w Cut (aka kill)C-k Cut till end of lineM-w CopyC-y Paste (aka yank)M-y Cycle last paste through previous killsC-x C-y Choose what to paste from previous killsC-@ Mark stuff quickly. Press multiple timesC-g Quit out of whatever mess you've gotten yourself intoM-x Run a command by nameC-. AutocompleteC-_ UndoM-_ RedoC-x u Show the undo-treeC-x m Open magit. It's a magical git interface for emacsC-arrow Move past words/paragraphsC-a Go to start of lineC-e Go to end of lineM-g M-g Go to line numberC-x C-i Go to symbolC-s Search forward. Press C-s again to go further.C-r Search backward. Press C-r again to go further.C-x 0 Close this windowC-x 1 Close other windowsC-x 2 Split window horizontallyC-x 3 Split window verticallyS-arrow Jump to window to the left/right/up/downF1 t Basic tutorialF1 k Help for a keybindingF1 r Emacs' extensive documentation1,043 followers · starred Jun 2013
227 followers · starred Nov 2014
225 followers · starred Sep 2016
558 followers · starred May 2013