-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.emacs
96 lines (56 loc) · 2.39 KB
/
.emacs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
;; ============================================================================
;; Daniel's Emacs configuration of wonder
;; ============================================================================
;; Disable the splash screen.
(setq inhibit-splash-screen t
initial-scratch-message nil)
;; Hide the tool bar and scroll bars.
(tool-bar-mode -1)
(scroll-bar-mode -1)
;; Make typing `y` or `n` acceptable when prompted for `yes` or `no`.
(defalias 'yes-or-no-p 'y-or-n-p)
;; Package management
;; ============================================================================
;; [1] - Add MELPA.
;; [2] - Add Org ELPA (for `org-mode`).
(require 'package)
(package-initialize)
(add-to-list 'package-archives '("melpa" . "http://melpa.org/packages/")) ;; [1]
(add-to-list 'package-archives '("org" . "https://orgmode.org/elpa/") t) ;; [2]
;; Reading
;; ============================================================================
;; Enable column numbers.
(setq column-number-mode t)
;; Editing
;; ============================================================================
;; Enable Emacs to access the system clipboard.
(setq x-select-enable-clipboard t)
;; Disable back up files.
(setq make-backup-files nil)
(show-paren-mode t)
;; Lisp
;; ============================================================================
;; Tell Emacs which Lisp compiler to use; in this case, SBCL.
(setq inferior-lisp-program (executable-find "sbcl"))
;; org-mode
;; ============================================================================
(require 'org)
(define-key global-map "\C-cl" 'org-store-link)
(define-key global-map "\C-ca" 'org-agenda)
(setq org-log-done t)
;; Tell org-mode what files should be searched for agenda items.
(setq org-agenda-files (list "~/org/todo.org"))
;; Do not touch
;; ============================================================================
(custom-set-variables
;; custom-set-variables was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
'(package-selected-packages (quote (slime org))))
(custom-set-faces
;; custom-set-faces was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
)