-
Notifications
You must be signed in to change notification settings - Fork 0
/
emacs
67 lines (47 loc) · 1.89 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
;; Emacs Configuration File
;; Bryan Hernandez Ruiz -- Bheru27
(require 'package)
;;emacs package repos
(setq package-archives '(("gnu" . "https://elpa.gnu.org/packages/")
("melpa" . "https://melpa.org/packages/")))
(package-initialize)
;;Install packages if not installed
(unless (package-installed-p 'alchemist)
(package-refresh-contents)
(package-install 'alchemist))
(unless (package-installed-p 'alect-themes)
(package-install 'alect-themes))
;; Themes
(load-theme 'alect-black t)
;; Remove toolbar and menu bar
(menu-bar-mode -1)
(tool-bar-mode -1)
;;Change emacs autosave files to another directory.
(defconst emacs-tmp-dir (format "%s/%s/%s" (getenv "HOME") ".emacs.d" "auto-save"))
(unless (file-directory-p emacs-tmp-dir)
(make-directory emacs-tmp-dir))
(setq backup-directory-alist
`((".*" . ,emacs-tmp-dir)))
(setq auto-save-file-name-transforms
`((".*" ,emacs-tmp-dir t)))
;;Change emacs fonts, I use Source code Pro so it needs to be installed.
(add-to-list 'default-frame-alist '(font . "Source Code Pro Semibold" ))
(set-face-attribute 'default t :font "Source Code Pro Semibold")
;;;;;;;;;; Org Mode ;;;;;;;;;;;;;;;;
(require 'org)
(define-key global-map "\C-cl" 'org-store-link)
(define-key global-map "\C-ca" 'org-agenda)
(setq org-log-done t)
;;;;;;;;;;; Programming Configuration ;;;;;;;;;;;;
(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.
'(package-selected-packages (quote (alect-themes alchemist))))
(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.
)