-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.el
124 lines (99 loc) · 3.69 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
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
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
;;; $DOOMDIR/config.el -*- lexical-binding: t; -*-
(setq user-full-name "Carlos José Ruiz-Henestrosa Ruiz"
user-mail-address "ruizh.cj@gmail.com")
(setq doom-font (font-spec :family "Fira Code" :size 16))
(setq doom-theme 'doom-dracula)
(setq org-directory "~/org/")
(after! org
(setq org-agenda-start-on-weekday 1)
(setq calendar-week-start-day 1)
(add-to-list 'org-latex-packages-alist '("AUTO" "babel" t ("pdflatex")))
(add-to-list 'org-latex-packages-alist '("AUTO" "polyglossia" t ("xelatex" "lualatex"))))
(use-package! org-noter
:after (:any org pdf-view)
:config
(setq
org-noter-notes-window-location 'other-frame
org-noter-always-create-frame nil
org-noter-hide-other nil
org-noter-notes-search-path (list "/home/cj/org/notes/")))
(use-package! org-ref
:after org
:config
(setq org-ref-pdf-directory "~/Documentos/bibliography/bibtex-pdfs/"
org-ref-default-bibliography "~/Documentos/bibliography/references.bib")
(setq bibtex-completion-bibliography org-ref-default-bibliography
bibtex-completion-library-path "~/Documentos/bibliography/bibtex-pdfs")
;; (setq bibtex-completion-pdf-open-function 'org-open-file)
(setq org-latex-pdf-process (list "latexmk -shell-escape -bibtex -f -pdf %f"))
)
;; This determines the style of line numbers in effect. If set to `nil', line
;; numbers are disabled. For relative line numbers, set this to `relative'.
(setq display-line-numbers-type 'relative)
(after! latex
(setq-hook! 'plain-tex-mode-hook
TeX-electric-math (cons "$" ""))
(setq-hook! 'LaTeX-mode-hook
TeX-electric-math (cons "\\(" ""))
(add-hook 'LaTeX-mode-hook 'LaTeX-math-mode)
(add-hook! 'LaTeX-math-mode-hook
(define-key LaTeX-math-mode-map
(LaTeX-math-abbrev-prefix) t) ; Unbind "`"
(set-default 'LaTeX-math-abbrev-prefix "ç") ; Set "ç" as new prefix
(define-key LaTeX-math-mode-map
(LaTeX-math-abbrev-prefix) LaTeX-math-keymap)) ; Bind "ç"
)
(after! conda
(setq conda-anaconda-home "~/.conda"))
;; (after! python
;; (setq python-shell-interpreter "ipython"))
(after! hideshow
(add-to-list 'hs-special-modes-alist
'(conf-mode "{{{" "}}}" "\"")))
(when (eq window-system 'pgtk)
(pgtk-use-im-context t))
(after! ess-r-mode
(appendq! +pretty-code-symbols
'(:assign "⟵"
:multiply "×"))
(set-pretty-symbols! 'ess-r-mode
;; Functional
:def "function"
;; Types
:null "NULL"
:true "TRUE"
:false "FALSE"
:int "int"
:float "float"
:bool "bool"
;; Flow
:not "!"
:and "&&" :or "||"
:for "for"
:in "%in%"
:return "return"
;; Other
:assign "<-"
:multiply "%*%"))
(after! mu4e
(setq mu4e-view-use-gnus t)
;; Each path is relative to `+mu4e-mu4e-mail-path', which is ~/.mail by default
(set-email-account! "GMail"
'((mu4e-sent-folder . "/gmail/[Gmail]/Enviados")
(mu4e-drafts-folder . "/gmail/[Gmail]/Borradores")
(mu4e-trash-folder . "/gmail/[Gmail]/Papelera")
(mu4e-refile-folder . "/gmail/[Gmail]/Todos")
(smtpmail-smtp-user . "ruizh.cj@gmail.com")
(mu4e-compose-signature . "--\nCarlos José Ruiz-Henestrosa Ruiz")) t))
(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.
'(safe-local-variable-values '((TeX-engine . xelatex))))
(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.
)