-
Notifications
You must be signed in to change notification settings - Fork 0
/
init.el
105 lines (83 loc) · 4.93 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
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
97
98
99
100
101
102
103
104
105
(require 'package)
(add-to-list 'package-archives
'("melpa" . "https://melpa.org/packages/") t)
(package-initialize)
(load-theme 'twilight-bright t)
(setq default-directory "~")
(when (memq window-system '(mac ns x))
(exec-path-from-shell-initialize))
(setq inhibit-startup-message t)
(setq initial-scratch-message nil)
(setq mac-command-key-is-meta t)
(setq mac-option-key-is-meta nil
mac-command-key-is-meta t
mac-command-modifier 'meta
mac-option-modifier 'super) ; make opt key do Super
(tool-bar-mode -1)
(visual-line-mode t)
(electric-pair-mode nil)
(setq ring-bell-function 'ignore)
(yas-global-mode 1)
;; reference manager
(require 'org-ref)
(setq reftex-default-bibliography '("~/Documents/org/PhD/bibliographies/deterioration_basic_science.bib"))
(setq org-ref-bibliography-notes "~/Documents/org/PhD/bibliographies/notes.org"
org-ref-default-bibliography '("~/Documents/org/PhD/bibliographies/deterioration_basic_science.bib")
org-ref-pdf-directory "~/Dropbox/bibliography/bibtex-pdfs")
;; lisp
(add-hook 'after-init-hook 'global-company-mode)
(setq inferior-lisp-program "/usr/local/bin/sbcl")
(setq common-lisp-hyperspec-root "file:///Users/caw/HyperSpec/")
(setq bibtex-completion-bibliography "~/Documents/org/PhD/bibliographies/deterioration_basic_science.bib"
bibtex-completion-library-path "~/Dropbox/bibliography/bibtex-pdfs"
bibtex-completion-notes-path "~/Dropbox/bibliography/helm-bibtex-notes")
(setq bibtex-completion-pdf-open-function
(lambda (fpath)
(start-process "open" "*open" "open" fpath)))
;; org
(require 'org-bullets)
(add-hook 'org-mode-hook (lambda () (org-bullets-mode 1)))
(require 'org-pdftools)
(add-to-list 'org-file-apps
'("\\.pdf\\'" . (lambda (file link)
(org-pdftools-open link))))
(require 'ox-pandoc)
(global-set-key (kbd "C-c l") 'org-store-link)
(global-set-key (kbd "C-c a") 'org-agenda)
(global-set-key (kbd "C-c c") 'org-capture)
(global-set-key (kbd "C-c o")
(lambda () (interactive) (find-file "~/Documents/org/covid.org")))
(setq org-default-notes-file (concat org-directory "/notes.org"))
(global-set-key (kbd "C-c c") 'org-capture)
(setq org-log-done 'time)
(setq org-refile-targets '((nil :maxlevel . 9)
(org-agenda-files :maxlevel . 9)))
(setq org-outline-path-complete-in-steps nil) ; Refile in a single go
(setq org-refile-use-outline-path t) ; Show full paths for refiling
(setq org-todo-keywords
'((sequence "TODO" "IN-PROGRESS" "WAITING" "DELEGATED" "DONE")))
(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.
'(browse-url-browser-function 'eww-browse-url)
'(custom-safe-themes
'("76b4632612953d1a8976d983c4fdf5c3af92d216e2f87ce2b0726a1f37606158" "60317874283814fe51bda023c1fc26dc983db0853796d5cd6dfd09d7331fc77a" "e6df46d5085fde0ad56a46ef69ebb388193080cc9819e2d6024c9c6e27388ba9" "fe36e4da2ca97d9d706e569024caa996f8368044a8253dc645782e01cd68d884" "57d7e8b7b7e0a22dc07357f0c30d18b33ffcbb7bcd9013ab2c9f70748cfa4838" "5f4dfda04fbf7fd55228266c8aab73953d3087cea7fd06dd7f8ff1e4a497c739" "e0d42a58c84161a0744ceab595370cbe290949968ab62273aed6212df0ea94b4" "c48551a5fb7b9fc019bf3f61ebf14cf7c9cdca79bcb2a4219195371c02268f11" "3cd28471e80be3bd2657ca3f03fbb2884ab669662271794360866ab60b6cb6e6" default))
'(electric-indent-mode nil)
'(electric-pair-mode nil)
'(package-selected-packages
'(org-ref sunshine pdf-tools zenburn-theme arjen-grey-theme color-theme-modern use-package zotxt yasnippet-snippets yasnippet-classic-snippets xref-js2 white-theme w3m sublime-themes sly-repl-ansi-color sly-quicklisp sly-named-readtables sly-macrostep sly-hello-world sly-asdf slime-company racket-mode projectile-variable pandoc-mode pandoc ox-pandoc org-present-remote org-bullets major-mode-hydra magit indium hyperlist-mode hyperbole helm-sly helm-projectile haskell-mode golden-ratio-scroll-screen golden-ratio fireplace exec-path-from-shell evil-visual-mark-mode evil-org evil-easymotion evil-better-visual-line company-auctex common-lisp-snippets cider-hydra cider-eval-sexp-fu cider-decompile auto-complete-auctex ag ac-sly ac-js2 ac-geiser ac-clang ac-cider 2048-game 0x0))
'(ring-bell-function 'ignore)
'(sunshine-appid "033ab3f58a0648951c1a269f013e1e07")
'(sunshine-location "Melbourne, AU")
'(sunshine-show-icons t)
'(sunshine-units 'metric)
'(tool-bar-mode nil))
(set-frame-font "Menlo 14" nil t)
(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.
'(default ((t (:background nil :family "Menlo" :foundry "nil" :slant normal :weight normal :height 140 :width normal)))))