-
Notifications
You must be signed in to change notification settings - Fork 0
/
init.el
67 lines (49 loc) · 2.02 KB
/
init.el
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
;;; init.el --- custom config entry point
;; Copyright (c) 2015 James Kruth
;; Author: James Kruth <james@kruth.org>
;; Created: 17 Feb 2015
;; Version: 0.1
;; Keywords: config
;; Homepage: https://artlogic.github.io/.emacs.d/
;; This file is not part of GNU Emacs.
;; This program is free software: you can redistribute it and/or
;; modify it under the terms of the MIT License.
;; This program is distributed in the hope that it will be useful, but
;; WITHOUT ANY WARRANTY; without even the implied warranty of
;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the MIT
;; License for more details.
;; You should have received a copy of the MIT License along with this
;; program. If not, see <http://opensource.org/licenses/MIT>.
;;; Commentary:
;; This file is the entry point for my customized configuration.
;;; Code:
;; save customizations in custom.el
(setq custom-file "~/.emacs.d/custom.el")
(load custom-file 'missing-ok)
;; customize isn't great a customizing default lists - it would be
;; great if it could append/prepend, but it can't so we do that work
;; here
;; prepend /usr/local/bin to the exec-path & PATH
;; this is probably only needed on Mac OS
(add-to-list 'exec-path "/usr/local/bin")
(setenv "PATH" (concat (getenv "PATH") ":/usr/local/bin"))
;; ignore the node_modules directory
(with-eval-after-load 'grep
(add-to-list 'grep-find-ignored-directories "node_modules"))
;; setup org mode global keys
;; see http://orgmode.org/manual/Activation.html
(global-set-key "\C-cl" 'org-store-link)
(global-set-key "\C-ca" 'org-agenda)
(global-set-key "\C-cc" 'org-capture)
(global-set-key "\C-cb" 'org-iswitchb)
;; append melpa-stable
(require 'package)
(add-to-list 'package-archives
'("melpa-stable" . "https://stable.melpa.org/packages/") t)
;; init and refresh package list, if needed
(package-initialize)
(unless package-archive-contents
(package-refresh-contents))
;; install selected packages (see package-selected-packages in custom.el)
(package-install-selected-packages)
;;; init.el ends here