about summary refs log tree commit diff
path: root/emacs.d/init-settings.el
diff options
context:
space:
mode:
authorVincent Ambo <vincent@spotify.com>2013-08-05T09·54+0200
committerVincent Ambo <vincent@spotify.com>2013-08-05T09·54+0200
commit46b80c00fd8a260e130e4f785b3f46c49487c9db (patch)
treec265479ad130e0090d822ebfb2f88c443089e37a /emacs.d/init-settings.el
parent006043d82e7938f5f79d11e17e03314e932f8684 (diff)
emacs: Added some functions from @magnars, replaced standard goto-line with his version
Diffstat (limited to 'emacs.d/init-settings.el')
-rw-r--r--emacs.d/init-settings.el10
1 files changed, 10 insertions, 0 deletions
diff --git a/emacs.d/init-settings.el b/emacs.d/init-settings.el
index 02069a82f8c2..e2c7e6249bd4 100644
--- a/emacs.d/init-settings.el
+++ b/emacs.d/init-settings.el
@@ -111,6 +111,16 @@ comment as a filename."
 ;; Not the real deal without this ...
 (set-variable 'nyan-wavy-trail t)
 
+(setq linum-format (lambda (line)
+                     (propertize
+                      (format (concat " %"
+                                      (number-to-string
+                                       (length (number-to-string
+                                                (line-number-at-pos (point-max)))))
+                                      "d ")
+                              line)
+                      'face 'linum)))
+
 ;; Hiding JOIN, QUIT, PART
 (setq erc-hide-list '("JOIN" "PART" "QUIT"))