-
Notifications
You must be signed in to change notification settings - Fork 1
/
custom.el.example
52 lines (41 loc) · 1.27 KB
/
custom.el.example
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
;; -*- mode: emacs-lisp; -*-
;;; custom.el ---
;; set user name and email
(setq
user-full-name "John Doe"
user-mail-address "john (at) mail.com"
)
;; set font
(cond (window-system
(set-default-font "Monospace 12"))
)
;; add commonly used paths
(push "~/work/dev" load-path)
;; set geiser compiler to racket, you can choose guile
(setq geiser-active-implementations '(racket))
(defun my-whitespace-mode-hook ()
;; set highlight foreground and background color
;; (set-face-foreground 'whitespace-line "red")
;; (set-face-background 'whitespace-line nil)
(setq whitespace-style '(face lines-tail))
(setq whitespace-line-column 80)
(whitespace-mode)
)
;; enable white-space mode for emacs-lisp-mode
(add-hook 'emacs-lisp-mode-hook 'my-whitespace-mode-hook)
;; and for ruby
(add-hook 'ruby-mode-hook 'my-whitespace-mode-hook)
;; set visible ruler to control line lenght
(defun my-fci-mode-hook ()
;; set ruler position
(setq fci-rule-column 80)
(fci-mode)
)
;; enable ruler for emacs-lisp-mode
(add-hook 'emacs-lisp-mode-hook 'my-fci-mode-hook)
;; and for ruby
(add-hook 'ruby-mode-hook 'my-fci-mode-hook)
;; erlang-mode settings (for Ubuntu)
(setq erlang-root-dir "/usr/lib/erlang")
(setq exec-path (cons "/usr/lib/erlang/bin" exec-path))
;;; custom.el ends here