-
Notifications
You must be signed in to change notification settings - Fork 0
/
emacs_profile
83 lines (61 loc) · 2.26 KB
/
emacs_profile
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
(setq ns-pop-up-frames nil)
(getenv "PATH")
(setenv "PATH"
(concat
"/usr/texbin" ":"
(getenv "PATH")))
(add-to-list 'exec-path "/usr/local/bin")
;; (setq ispell-program-name "aspell")
;; (require 'ispell)
(dolist (hook '(text-mode-hook))
(add-hook hook (lambda () (flyspell-mode 1))))
(dolist (hook '(change-log-mode-hook log-edit-mode-hook))
(add-hook hook (lambda () (flyspell-mode -1))))
;; Visual line mode
(add-hook 'text-mode-hook 'turn-on-visual-line-mode)
;; Font size
(set-face-attribute 'default nil :height 150)
;; Remove splash screen
(setq inhibit-splash-screen t)
;; Delete selection mode
(delete-selection-mode 1)
;; Loading PHP mode
(autoload 'php-mode "php-mode" "Major mode for editing php code." t)
(add-to-list 'auto-mode-alist '("\\.php$" . php-mode))
(add-to-list 'auto-mode-alist '("\\.inc$" . php-mode))
(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-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.
)
;; PDF mode for Latex
(setq TeX-PDF-mode t)
;; spell checker
(setq ispell-program-name "aspell")
(setq ispell-program-name "aspell"
ispell-dictionary "english"
ispell-dictionary-alist
(let ((default '("[A-Za-z]" "[^A-Za-z]" "[']" nil
("-B" "-d" "english" "--dict-dir"
"/Library/Application Support/cocoAspell/aspell6-en-6.0-0")
nil iso-8859-1)))
`((nil ,@default)
("english" ,@default))))
;; spell check on the fly
(dolist (hook '(text-mode-hook))
(add-hook hook (lambda () (flyspell-mode 1))))
(dolist (hook '(change-log-mode-hook log-edit-mode-hook))
(add-hook hook (lambda () (flyspell-mode -1))))
;; Disable backup
(setq auto-save-default nil)
;; Auctex master file
;;(setq-default TeX-master "paper") ; Query for master file.
;;
(setq LaTeX-command-style '(("" "%(PDF)%(latex) -file-line-error %S%(PDFout)")))