mirror of
https://github.com/jimeh/.emacs.d.git
synced 2026-02-19 13:46:41 +00:00
28 lines
841 B
EmacsLisp
28 lines
841 B
EmacsLisp
;; Default tab-width of 2 spaces
|
|
(setq-default tab-width 2)
|
|
|
|
;; Electric behavior
|
|
(electric-pair-mode t)
|
|
(electric-indent-mode t)
|
|
(electric-layout-mode t)
|
|
|
|
;; Always indent with spaces
|
|
(setq-default indent-tabs-mode nil)
|
|
|
|
;; Answer yes/no questions by typing y/n
|
|
(fset 'yes-or-no-p 'y-or-n-p)
|
|
|
|
;; Enable C-x C-l and C-x C-u for down/up-case conversions
|
|
(put 'downcase-region 'disabled nil)
|
|
(put 'upcase-region 'disabled nil)
|
|
|
|
;; Globally enable delete-selection-mode
|
|
(delete-selection-mode 1)
|
|
|
|
;; scroll one line at a time (less "jumpy" than defaults)
|
|
(setq mouse-wheel-scroll-amount '(2 ((shift) . 10)) ;; two lines at a time
|
|
mouse-wheel-progressive-speed nil ;; don't accelerate scrolling
|
|
mouse-wheel-follow-mouse 't ;; scroll window under mouse
|
|
scroll-step 1 ;; keyboard scroll one line at a time
|
|
scroll-margin 0)
|