Skip to content
Newer
Older
100644 105 lines (90 sloc) 3.11 KB
58f09e7 @mig some cleanup
authored Jan 19, 2011
1 (setq path "/bin:/usr/bin:/sbin:/usr/sbin:/usr/local/bin")
2 (setenv "PATH" path)
3 (push "/usr/local/bin" exec-path)
4
5 (setq default-input-method "MacOSX")
6 (setq ns-command-modifier 'meta)
0ed8a3d @mig Refreshed config
authored Nov 29, 2011
7 (setq mac-allow-anti-aliasing t)
58f09e7 @mig some cleanup
authored Jan 19, 2011
8
9 (setq make-backup-files nil)
10 (setq auto-save-default nil)
11 (setq-default tab-width 2)
12 (setq js-indent-level 2)
13 (setq-default indent-tabs-mode nil)
14 (setq inhibit-startup-message t)
15 (setq ring-bell-function 'ignore)
0ed8a3d @mig Refreshed config
authored Nov 29, 2011
16 (setq redisplay-dont-pause t)
17
18 ;; encoding
19 (prefer-coding-system 'utf-8)
20 (set-language-environment 'utf-8)
21 (set-default-coding-systems 'utf-8)
22 (set-terminal-coding-system 'utf-8)
23 (set-selection-coding-system 'utf-8)
58f09e7 @mig some cleanup
authored Jan 19, 2011
24
25 (fset 'yes-or-no-p 'y-or-n-p)
26
27 (delete-selection-mode t)
0ed8a3d @mig Refreshed config
authored Nov 29, 2011
28 (scroll-bar-mode 0)
29 (tool-bar-mode 0)
58f09e7 @mig some cleanup
authored Jan 19, 2011
30 (blink-cursor-mode t)
31 (show-paren-mode t)
0ed8a3d @mig Refreshed config
authored Nov 29, 2011
32 (column-number-mode)
33 (set-fringe-style 0)
58f09e7 @mig some cleanup
authored Jan 19, 2011
34 (tooltip-mode -1)
6343d7a @mig Auto revert mode
authored Feb 22, 2011
35 (global-auto-revert-mode 1)
58f09e7 @mig some cleanup
authored Jan 19, 2011
36
0ed8a3d @mig Refreshed config
authored Nov 29, 2011
37 ;; Line numbers in column, kinda sucks
38 ;; (fringe-mode 1)
39 ;; (global-linum-mode 1)
40 ;; (setq linum-format " %d ")
41
01ac40c @mig Created a railscasts theme using new Emacs 24 theming conventions
authored Jan 28, 2011
42 ;; load themes
0ed8a3d @mig Refreshed config
authored Nov 29, 2011
43 (set-frame-font "Menlo-15")
44 (setq my-theme-dir "~/.emacs.d/themes")
45 (add-to-list 'load-path my-theme-dir)
46 (setq custom-theme-directory my-theme-dir)
47 (setq custom-safe-themes
48 (quote ("71203f3f2e0648822e3c3afc40ce0c7cea65f474"
49 "0174d99a8f1fdc506fa54403317072982656f127"
50 "3df2d93e0c665215da82cb621bdaee03c9882298"
51 "a73fd470d417fe2f963e5355e9211fe88acd45f2"
52 "0497fe19792c0c40e0d5377b8711aadd3ec9ed11"
53 default)))
54
55 (load-theme 'burds-of-paradise)
56 ;; (load-theme 'railscasts)
57 ;; (load-theme 'tango-dark)
58 ;; (load-theme 'wombat)
59
58f09e7 @mig some cleanup
authored Jan 19, 2011
60 ;; load global helpers for some neat functions
61 (load "helpers/global.el")
62
530e4c1 @mig This works and installs el-get stuff properly, but ONLY if emacs is s…
authored Sep 9, 2010
63 (global-unset-key (kbd "M-n"))
64 (global-unset-key (kbd "M-o"))
65 (global-unset-key (kbd "M-s"))
9a43a54 @mig No more rinari, uses latest el-get.
authored Dec 4, 2010
66 (global-set-key (kbd "M-o") 'find-file)
67 (global-set-key (kbd "M-w") 'close-current-buffer)
68 (global-set-key (kbd "M-s") 'save-buffer)
69 (global-set-key (kbd "M-S-s") 'write-file)
70 (global-set-key (kbd "M-a") 'mark-whole-buffer)
0ed8a3d @mig Refreshed config
authored Nov 29, 2011
71 (global-set-key (kbd "M-x") 'kill-region-and-save)
9a43a54 @mig No more rinari, uses latest el-get.
authored Dec 4, 2010
72 (global-set-key (kbd "M-c") 'kill-ring-save)
73 (global-set-key (kbd "M-v") 'yank)
530e4c1 @mig This works and installs el-get stuff properly, but ONLY if emacs is s…
authored Sep 9, 2010
74 (global-set-key (kbd "M-V") 'yank-pop)
75 (global-set-key (kbd "M-C") 'copy-all)
76 (global-set-key (kbd "M-X") 'cut-all)
77 (global-set-key (kbd "M-z") 'undo)
78 (global-set-key (kbd "M-Z") 'redo)
0ed8a3d @mig Refreshed config
authored Nov 29, 2011
79 (global-set-key (kbd "M-L") 'goto-line)
530e4c1 @mig This works and installs el-get stuff properly, but ONLY if emacs is s…
authored Sep 9, 2010
80
9a43a54 @mig No more rinari, uses latest el-get.
authored Dec 4, 2010
81 (global-set-key (kbd "C-x x") 'execute-extended-command)
82 (global-set-key (kbd "M-p") 'dabbrev-expand)
83 (define-key lisp-mode-shared-map (kbd "M-r") 'eval-buffer)
84 (define-key lisp-mode-shared-map (kbd "C-j") 'eval-last-sexp)
530e4c1 @mig This works and installs el-get stuff properly, but ONLY if emacs is s…
authored Sep 9, 2010
85
58f09e7 @mig some cleanup
authored Jan 19, 2011
86 ;; these functions are found in helpers/global
87 (global-set-key (kbd "M-N") 'ns-toggle-fullscreen)
88 (global-set-key (kbd "C-k") 'delete-whole-line)
89 (global-set-key (kbd "C-M-{") 'indent-buffer)
90 (global-set-key (kbd "C-;") 'swap-window-positions)
9a43a54 @mig No more rinari, uses latest el-get.
authored Dec 4, 2010
91
92 (recentf-mode 1)
530e4c1 @mig This works and installs el-get stuff properly, but ONLY if emacs is s…
authored Sep 9, 2010
93 (require 'ido)
94 (ido-mode t)
95 (setq ido-enable-prefix nil
9a43a54 @mig No more rinari, uses latest el-get.
authored Dec 4, 2010
96 ido-enable-flex-matching t)
530e4c1 @mig This works and installs el-get stuff properly, but ONLY if emacs is s…
authored Sep 9, 2010
97
9a43a54 @mig No more rinari, uses latest el-get.
authored Dec 4, 2010
98 (defun recentf-ido-find-file ()
99 "Find a recent file using Ido."
100 (interactive)
101 (let ((file (ido-completing-read "Choose recent file: " recentf-list nil t)))
102 (when file
103 (find-file file))))
104 (global-set-key (kbd "C-x f") 'recentf-ido-find-file)
Something went wrong with that request. Please try again.