gdritter repos dotfiles / daaf222
an absolute ton of .emacs cleanup Getty Ritter 11 days ago
1 changed file(s) with 20 addition(s) and 19 deletion(s). Collapse all Expand all
1 ;; basic appearance bits
2
1 ;; Global configuration:
2
3 ;; don't do the startup stuff
34 (setq initial-scratch-message "")
45 (setq inhibit-startup-message t)
56 (setq inhibit-startup-screen t)
7
8 ;; don't show the menu bar
69 (menu-bar-mode 0)
10 (scroll-bar-mode 0)
11 (tool-bar-mode 0)
12
13 ;; set up sizing in a reasonable way
714 (setq column-number-mode t)
815 (setq default-tab-width 4)
916 (setq-default indent-tabs-mode nil)
10
11 (setq c-default-style "stroustrup")
12 (c-set-offset 'substatement-open 0)
13 (add-to-list 'auto-mode-alist '("\\.edl\\'" . c-mode))
14
15 (setq scheme-program-name "guile")
17 (set-fill-column 120)
18
19 ;; miscellaneous global config
1620 (setq vc-follow-symlinks t)
17
18 (if (and (display-graphic-p)
19 (not (getenv "BIG")))
20 (progn
21 (scroll-bar-mode 0)
22 (tool-bar-mode 0)))
23
2421 (setq require-final-newline t)
2522
26 ;; move backups to a specific directory)
23 ;; change backups to be less inline
2724 (make-directory "~/.emacs-autosave" t)
2825 (make-directory "~/.emacs-backups" t)
2926 (setq auto-save-file-name-transforms '((".*" "~/.emacs-autosave/" t)))
3027 (setq backup-directory-alist '(("." . "~/.emacs-backups")))
3128
32
3329
34
35 ;; *elpa setup
30 ;; some disables
31 (put 'upcase-region 'disabled nil)
32 (put 'downcase-region 'disabled nil)
33 (put 'narrow-to-region 'disabled nil)
34
35
3636
37 ;; *elpa and package setup
3738 (require 'package)