blob: efdc41008e6af574bfaf4beb810bbd6eed0f5ef6 (
plain) (
blame)
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
|
;; auto close bracket insertion
(electric-pair-mode 1)
;; ?
(add-hook 'prog-mode-hook
(lambda () (setq show-trailing-whitespace t)))
;; this makes emacs slow to work with source
(delete 'Git vc-handled-backends)
;; alias yes-or-no to y-or-n
(fset 'yes-or-no-p 'y-or-n-p)
;; set utf-8 as the default encoding
(prefer-coding-system 'utf-8-unix)
(set-terminal-coding-system 'utf-8)
(set-keyboard-coding-system 'utf-8)
;; reload the buffer when a file changes
(global-auto-revert-mode 1)
;; global settings for built-in emacs parameters
(setq auto-save-default nil
auto-save-list-file-prefix nil
inhibit-startup-screen t
initial-scratch-message nil
make-backup-files nil
require-final-newline t
vc-follow-symlinks t
next-screen-context-lines 5
column-number-mode t
ring-bell-function 'ignore
tab-always-indent 'complete)
(setq-default indent-tabs-mode nil
create-lockfiles nil)
;; show parenthesis
(show-paren-mode +1)
;; no blink cursor
(blink-cursor-mode -1)
(when window-system
(tool-bar-mode 0)
(scroll-bar-mode 0)
(menu-bar-mode -1))
;; I don't want a frindge on the right
(fringe-mode '(4 . 0))
;; frame title
(setq frame-title-format '( "%b" " [" (:eval mode-name) "]"))
;; Set default font. Large font for the main window, but small font for the modeline
(set-face-attribute 'default nil :family "Menlo" :height 150 :weight 'normal :width 'normal)
(set-face-attribute 'mode-line nil :height 120)
(provide 'my-settings)
|