about summary refs log tree commit diff
path: root/init-settings.el
diff options
context:
space:
mode:
Diffstat (limited to 'init-settings.el')
-rw-r--r--init-settings.el28
1 files changed, 26 insertions, 2 deletions
diff --git a/init-settings.el b/init-settings.el
index e2c7e6249bd4..3d6cf9402ef2 100644
--- a/init-settings.el
+++ b/init-settings.el
@@ -32,7 +32,10 @@
       uniquify-buffer-name-style 'forward
       whitespace-style '(face trailing lines-tail tabs)
       whitespace-line-column 80
+      fill-column 80
       ediff-window-setup-function 'ediff-setup-windows-plain
+      ediff-diff-options "-w"
+      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")))
@@ -60,6 +63,13 @@
 ;; Swedish!
 (set-language-environment 'Swedish)
 
+;; UTF-8 please
+(setq locale-coding-system 'utf-8) ; pretty
+(set-terminal-coding-system 'utf-8) ; pretty
+(set-keyboard-coding-system 'utf-8) ; pretty
+(set-selection-coding-system 'utf-8) ; please
+(prefer-coding-system 'utf-8) ; with sugar on top
+
 (require 'ffap)
 (defvar ffap-c-commment-regexp "^/\\*+"
   "Matches an opening C-style comment, like \"/***\".")
@@ -161,6 +171,22 @@ comment as a filename."
 ;; Don't use Apple's native fullscreen (FIXME: Change with Mavericks)
 (setq ns-use-native-fullscreen nil)
 
+;; Auto refresh buffers
+(global-auto-revert-mode 1)
+
+;; Also auto refresh dired, but be quiet about it
+(setq global-auto-revert-non-file-buffers t)
+(setq auto-revert-verbose nil)
+
+;; Show keystrokes in progress
+(setq echo-keystrokes 0.1)
+
+;; Move files to trash when deleting
+(setq delete-by-moving-to-trash t)
+
+;; Make emacs behave sanely (overwrite selected text)
+(delete-selection-mode 1)
+
 (defun toggle-native-fullscreen ()
   "Toggles between native and non-native OS X fullscreen"
   (interactive)
@@ -168,8 +194,6 @@ comment as a filename."
 
 ;; ## Navigation and key bindings ##
 
-;; Navigate windows with M-<arrows>
-(windmove-default-keybindings 'meta)
 (setq windmove-wrap-around t)
 
 ;; Load ace-jump-mode