diff options
author | Alexander Sulfrian <alexander@sulfrian.net> | 2012-04-24 23:52:15 +0200 |
---|---|---|
committer | Alexander Sulfrian <alexander@sulfrian.net> | 2012-04-25 00:15:23 +0200 |
commit | ec89a213e8e5ee100d5c6d4fcceeece5c9d6b47e (patch) | |
tree | d1aaccf6ca685c186e8446773121df52706514c2 | |
parent | ae9afca1f05f5c3c5ba2431524402246277bd915 (diff) | |
download | dotfiles-ec89a213e8e5ee100d5c6d4fcceeece5c9d6b47e.tar.gz dotfiles-ec89a213e8e5ee100d5c6d4fcceeece5c9d6b47e.tar.xz dotfiles-ec89a213e8e5ee100d5c6d4fcceeece5c9d6b47e.zip |
emacs: clever home key
-rw-r--r-- | emacs | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -92,6 +92,11 @@ (require 'uniquify) (setq uniquify-buffer-name-style 'reverse) +(defun back-to-indentation-or-beginning () (interactive) + (if (= (point) (progn (back-to-indentation) (point))) + (beginning-of-line))) +(global-set-key (kbd "<home>") 'back-to-indentation-or-beginning) + ;; c/c++-mode stuff (setq indent-tabs-mode t) ;(setq tab-width 8) |