-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.emacs
89 lines (73 loc) · 2.87 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
(require 'package)
(setq gnutls-algorithm-priority "NORMAL:-VERS-TLS1.3")
(add-to-list 'package-archives '("melpa" . "https://melpa.org/packages/"))
(add-to-list 'package-archives '("gnu" . "https://elpa.gnu.org/packages/"))
(add-to-list 'package-archives '("nongnu" . "https://elpa.nongnu.org/packages/"))
(package-initialize)
; (package-refresh-contents)
;; Download Org
(unless (package-installed-p 'org)
(package-install 'org))
;; Enable Org
(require 'org)
;; add more TODO states
(setq org-todo-keywords
'((sequence "TODO" "IN-PROGRESS" "WAITING" "CANCELLED" "DONE")))
;; asked by emacs window
(setq package-install-upgrade-built-in t)
;; Org mode mappings
(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)
;; Other stuff from org mode
;; Disable the splash screen (to enable it agin, replace the t with 0)
(setq inhibit-splash-screen t)
;; Enable transient mark mode
(transient-mark-mode 1)
;; Download Evil
(unless (package-installed-p 'evil)
(package-install 'evil))
;; Enable Evil
(require 'evil)
(evil-mode 1)
;;(normal-erase-is-backspace-mode 1)
;; conflicts with org mode
(eval-after-load "evil-maps"
(progn
(define-key evil-insert-state-map (kbd "S-<right>") nil)
(define-key evil-insert-state-map (kbd "S-<left>") nil)))
;; https://www.gnu.org/software/emacs/manual/html_node/efaq/Backspace-invokes-help.html
(keyboard-translate ?\C-h ?\C-?) ; translate 'C-h' to DEL
(keyboard-translate ?\C-? ?\C-h) ; translate DEL to 'C-h'.
;; fonts
(set-frame-font "CommitMono-18" nil t)
;; latex previews
(setq org-format-latex-options (plist-put org-format-latex-options :scale 2.0))
;; redo functionality
(evil-set-undo-system 'undo-redo)
;; DOES NOT WORK enable redo in evil mode
; (use-package undo-tree
; :ensure t
; :after evil
; :diminish
; :config
; (evil-set-undo-system 'undo-tree)
; (global-undo-tree-mode 1))
(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.
'(custom-safe-themes
'("d89e15a34261019eec9072575d8a924185c27d3da64899905f8548cbd9491a36" "4c56af497ddf0e30f65a7232a8ee21b3d62a8c332c6b268c81e9ea99b11da0d3" "fee7287586b17efbfda432f05539b58e86e059e78006ce9237b8732fde991b4c" "f5b6be56c9de9fd8bdd42e0c05fecb002dedb8f48a5f00e769370e4517dde0e8" default))
'(org-agenda-files
'("~/remote/tasks/foo.org" "~/remote/tasks/remote.org"))
'(package-selected-packages '(magit solarized-theme evil sml-mode)))
(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.
)
;; themes
(load-theme 'solarized-light t)