forked from jimenezrick/emacs.d
-
Notifications
You must be signed in to change notification settings - Fork 0
/
settings.el
86 lines (66 loc) · 2.25 KB
/
settings.el
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
84
85
86
(setq-default
inhibit-startup-screen t
initial-scratch-message ";; Eval sexp with C-x C-e and buffer with M-x eval-buffer\n")
(savehist-mode)
(setq-default
backup-by-copying t
backup-directory-alist `(("." . ,(expand-file-name "backup" user-emacs-directory)))
delete-old-versions t
kept-new-versions 6
kept-old-versions 2
version-control t
auto-revert-avoid-polling t)
(setq-default
indent-tabs-mode nil
require-final-newline t
truncate-lines t)
(setq-default bidi-inhibit-bpa t)
(setq-default bidi-paragraph-direction 'left-to-right)
(global-auto-revert-mode)
(global-display-line-numbers-mode)
(global-hl-line-mode)
(column-number-mode t)
(blink-cursor-mode -1)
(setq-default visible-bell t)
(add-hook 'prog-mode-hook #'(lambda () (modify-syntax-entry ?_ "w")))
(add-hook 'python-ts-mode-hook #'(lambda () (setq-local
python-indent-guess-indent-offset-verbose nil)))
(add-hook 'sh-mode-hook #'(lambda () (setq-local
indent-tabs-mode t
sh-basic-offset 8)))
(setq-default show-paren-delay 0)
(show-paren-mode)
(setq-default
select-enable-clipboard t
select-enable-primary t
mouse-drag-copy-region t)
(setq-default auth-source-save-behavior nil)
(setq-default tramp-default-method "ssh")
(setq-default tags-revert-without-query t)
(setq-default completions-detailed t)
(set-face-attribute 'default nil :family "Hack" :height 70)
(set-face-attribute 'variable-pitch nil :family "Junicode" :height 90)
(set-face-attribute 'bold nil :weight 'semibold)
(menu-bar-mode -1)
(tool-bar-mode -1)
(context-menu-mode)
(winner-mode)
(setq-default
x-gtk-use-system-tooltips nil
use-dialog-box nil)
(setq-default frame-title-format
'((:eval (if (buffer-file-name)
(abbreviate-file-name (buffer-file-name))
"%b"))))
(bind-key "<f2>" 'save-buffer)
(add-to-list 'auto-mode-alist '("/tmp/mutt.*" . mail-mode))
(setq-default max-specpdl-size 3200)
(setq-default messages-buffer-max-lines (* 16 1000))
(setq-default
scroll-margin 2
scroll-step 1
scroll-conservatively 101
scroll-up-aggressively 0.01
scroll-down-aggressively 0.01)
;; Enable to show a backtrace on any error
;;(setq debug-on-error t)