-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbase.el
51 lines (42 loc) · 1.33 KB
/
base.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
;; Basic settings
(dolist (mode '(menu-bar-mode tool-bar-mode scroll-bar-mode))
(when (fboundp mode) (funcall mode -1)))
(when (fboundp 'set-fringe-mode) (set-fringe-mode 0))
(column-number-mode t)
(put 'upcase-region 'disabled nil)
(put 'downcase-region 'disabled nil)
(setq confirm-nonexistent-file-or-buffer nil)
(setq-default indent-tabs-mode nil)
(setq-default tab-width 4)
(setq font-lock-maximum-decoration t)
(setq ring-bell-function (lambda nil nil))
(setq display-time-24hr-format t)
(display-time)
(setq tramp-default-method "ssh")
;; Disable auto-save
(setq auto-save-default nil)
(setq auto-save-interval 0)
(setq auto-save-timeout 0)
;; Rectangle selections (via CUA)
(when (fboundp 'cua-mode)
(setq cua-enable-cua-keys nil)
(cua-mode t) )
;; Parenthesis balance
(show-paren-mode t)
(setq show-paren-style 'expression)
;;(set-face-foreground 'show-paren-mismatch-face "red")
;; y/n keypresses instead of spelled out 'yes'/'no'
(defalias 'yes-or-no-p 'y-or-n-p)
;; yasnippet
(defun my-yasnippet ()
"yasnippet"
(setq yas-snippet-dirs
'("~/src/mine/emacs.d/snippet" ;; personal snippets
))
(require 'yasnippet)
(yas-global-mode 1)
(define-key yas-minor-mode-map (kbd "SPC") yas-maybe-expand)
(require 'warnings)
(add-to-list 'warning-suppress-types '(yasnippet backquote-change))
)
(provide 'base)