-
Notifications
You must be signed in to change notification settings - Fork 1
/
.emacs
80 lines (58 loc) · 1.71 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
(require 'package)
(setq package-archives '(("gnu" . "https://elpa.gnu.org/packages/")
("melpa" . "https://melpa.org/packages/")
("org" . "http://orgmode.org/elpa/")))
;; No blinking cursor
(blink-cursor-mode 0)
;; No toolbar/menubar or scrollbar
;(menu-bar-mode -1)
(tool-bar-mode -1)
;; Show column numbers
(setq column-number-mode t)
;; Don't show start screen
(setq inhibit-startup-message t)
;; Follow symlinks
(setq vc-follow-symlinks t)
;; GnuPG
(require 'epa-file)
(epa-file-enable)
(setq epa-file-name-regexp "\\.\\(gpg\\|asc\\)$")
(epa-file-name-regexp-update)
;; Window title
(setq frame-title-format '("" "%b - %m"))
;; No tabs
(setq-default indent-tabs-mode nil)
;; Disable backup
(setq backup-inhibited t)
;; Disable auto save
(setq auto-save-default nil)
;; Cursor
(setq-default cursor-type 'hbar)
;; Consolas!
(setq default-frame-alist
'((font . "Monaco-16:antialias=natural")
(vertical-scroll-bars . nil)))
;; Enable IDO
(require 'ido)
(ido-mode t)
;; UTF-8
(set-language-environment "UTF-8")
;; Yep
(global-auto-revert-mode 1)
(global-display-line-numbers-mode)
(define-key global-map [end] 'move-end-of-line)
(define-key global-map [home] 'move-beginning-of-line)
;; Setup theme
(load-theme 'base16-atelier-heath t)
;; Frame size
(add-to-list 'default-frame-alist '(height . 40))
(add-to-list 'default-frame-alist '(width . 110))
;; Start server if needed
(load "server")
(unless (server-running-p) (server-start))
;; Org-mode for Python
(setq org-babel-python-command "python3")
(org-babel-do-load-languages
'org-babel-load-languages '((python . t)))
;; Switch between implementation and header
(global-set-key (kbd "C-c o") 'ff-find-other-file)