about summary refs log tree commit diff
path: root/init-settings.el
diff options
context:
space:
mode:
authorVincent Ambo <vincent@spotify.com>2014-02-09T10·12+0100
committerVincent Ambo <vincent@spotify.com>2014-02-09T10·12+0100
commit4fd813f0def2a2cf0da5da7f15603765f725e7b7 (patch)
treec91b634a5efa87db3fdd73cec571baec9778ab94 /init-settings.el
parentbdbc18d285dee458f73c92efeac9a5eb417892e0 (diff)
Small changes:
- No bells at all. Shut up, emacs!
- Don't put temporary files everywhere. Just don't!
- Don't have scroll bars in new frames
Diffstat (limited to 'init-settings.el')
-rw-r--r--init-settings.el11
1 files changed, 10 insertions, 1 deletions
diff --git a/init-settings.el b/init-settings.el
index 524275e73fee..7f239bbde6d6 100644
--- a/init-settings.el
+++ b/init-settings.el
@@ -7,6 +7,15 @@
 (tool-bar-mode 0)
 (scroll-bar-mode 0)
 
+(defun disable-scroll-bar ()
+  (scroll-bar-mode 0))
+
+; And remember to do it if I create a new frame.
+(add-hook 'before-make-frame-hook 'disable-scroll-bar)
+
+;; Don't make any noises, don't flash, just leave me alone
+(setq ring-bell-function 'ignore)
+
 ;; Go away go away
 (setq initial-scratch-message "")
 
@@ -45,7 +54,7 @@
       ediff-split-window-function 'split-window-horizontally
       oddmuse-directory (concat user-emacs-directory "oddmuse")
       save-place-file (concat user-emacs-directory "places")
-      backup-directory-alist `(("." . ,(concat user-emacs-directory "backups")))
+      backup-directory-alist `((,(concat user-emacs-directory "backups")))
       diff-switches "-u")
 
 ;; Fix keys on Linux