summaryrefslogtreecommitdiff
path: root/init/km-editor.el
blob: 0fe2a314bf65059f2b526d8b8340b2626c525a7e (plain)
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
;; check km-ui.el if don't find something in here

(setq-default fill-column 72)
(add-hook 'text-mode-hook 'turn-on-auto-fill)

;; ess
;; (require 'ess-site)
(add-hook 'ess-mode-hook (lambda ()
                           (setq ess-indent-level 4)))

;; shell scripts
(add-hook 'sh-mode-hook (lambda ()
                          (setq sh-basic-offset 4)))

(global-set-key (kbd "C-x \\") 'align-regexp)

;; make whitespace-mode use just basic coloring
;; http://ergoemacs.org/emacs/whitespace-mode.html
(setq whitespace-style (quote
                        (spaces tabs newline space-mark
                                tab-mark newline-mark)))

(delete-selection-mode t) ;; write over selected text
(transient-mark-mode t)
;; share clipboard with system
(setq x-select-enable-clipboard t)

(blink-cursor-mode -1)