summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--emacs5
1 files changed, 5 insertions, 0 deletions
diff --git a/emacs b/emacs
index aa6176a..7398e85 100644
--- a/emacs
+++ b/emacs
@@ -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)