-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.el
55 lines (44 loc) · 2.27 KB
/
config.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
;;; config.el -*- lexical-binding: t; -*-
;; You may want to install the following open-source apps:
;; * terminal: https://alacritty.org/ $HOME/.alacritty.toml, see configs in https://alacritty.org/config-alacritty.html
;; * pdf: https://skim-app.sourceforge.io/
;; * bib: https://www.zotero.org/
;; ----------------------------------------------------------------------------
;; Generic Setup
;; ----------------------------------------------------------------------------
(setq user-full-name "Jamie Cui"
user-mail-address "[email protected]")
;; setup to use emacs-china mirros
;; see: https://elpamirror.emacs-china.org/
;; (setq package-archives '(("gnu" . "http://1.15.88.122/gnu/")
;; ("melpa" . "http://1.15.88.122/melpa/")))
;; setup theme
(setq doom-theme 'modus-vivendi)
;; setup default font
;; (setq doom-font (font-spec :family "Monaco" :size 14 :weight 'medium))
;; setup new const variables, make sure to doom sync after change
(defconst org-remote-path "~/Library/Mobile Documents/com~apple~CloudDocs/org-remote/")
(defconst org-local-path "~/org-local/")
(defconst use-remote-path t) ; non-nil to use remote path
;; Don't ask, just quit
(setq confirm-kill-emacs nil)
;; HACK: Query vc status for remote files
;; (setq ibuffer-vc-skip-if-remote nil)
;; HACK: Enable the vc gutter in remote files (e.g. open through TRAMP)
;; (setq +vc-gutter-in-remote-files t)
;; ----------------------------------------------------------------------------
;; Configuration: proxy
;; ----------------------------------------------------------------------------
;; (setq url-proxy-services
;; '(("no_proxy" . "^\\(localhost\\|10\\..*\\|192\\.168\\..*\\)")
;; ("http" . "127.0.0.1:8001")
;; ("https" . "127.0.0.1:8001")))
;; ----------------------------------------------------------------------------
;; Load my own tweaks
;; ----------------------------------------------------------------------------
(load (concat doom-user-dir "tweaks/window.el"))
(load (concat doom-user-dir "tweaks/editor.el"))
(load (concat doom-user-dir "tweaks/org.el"))
(load (concat doom-user-dir "tweaks/cppdev.el"))
(load (concat doom-user-dir "tweaks/latex.el"))
(load (concat doom-user-dir "tweaks/leetcode.el"))