1 ;; inhibit splash screen
2 (setq inhibit-splash-screen t)
4 ;; prevent backup file creation
5 (setq make-backup-files nil)
7 (transient-mark-mode t)
9 ;; disable startup message
10 (setq inhibit-startup-message t)
12 ;; Show column number at bottom of screen
13 (column-number-mode 1)
15 ;; alias y to yes and n to no
16 (defalias 'yes-or-no-p 'y-or-n-p)
18 ;; Pgup/dn will return exactly to the starting point.
19 (setq scroll-preserve-screen-position 1)
21 ;; format the title-bar to always include the buffer name
22 (setq frame-title-format "emacs - %b")
24 ;; scroll just one line when hitting the bottom of the window
26 (setq scroll-conservatively 1)
29 (setq toggle-scroll-bar t)
32 (setq iswitchb-mode t)
34 (setq cursor-type 'bar)
37 (setq show-paren-delay 0)
40 ;; alternatives are 'parenthesis' and 'mixed'
41 ;(setq show-paren-style 'expression)
44 (global-font-lock-mode t)
46 ;; which-function mode
47 (setq-default indent-tabs-mode nil)
48 (add-hook 'emacs-lisp-mode-hook
49 (lambda () (which-function-mode t)))
55 (setq scroll-conservatively 1)
56 (put 'upcase-region 'disabled nil)
57 (put 'downcase-region 'disabled nil)
59 ;; cut and paste with the rest of ecosystem in X
60 (setq x-select-enable-clipboard t)
63 (if (> emacs-major-version 20)
66 ;; completions enhancements
69 ;; Interactively Do Things mode
72 (setq ido-enable-flex-matching t)
73 (setq ido-enable-last-directory-history nil)
76 (when (require 'browse-kill-ring nil 'noerror)
77 (browse-kill-ring-default-keybindings))
79 ;;; displays "\" at the end of lines that wrap
80 (setq longlines-show-hard-newlines t)
83 (setq-default cursor-type '(bar . 2))
84 (set-cursor-color "#ff0000")