-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbasic-extras.el
38 lines (28 loc) · 1.13 KB
/
basic-extras.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
;; Common libraries -----------------------------------------------------------
(require 'let-alist)
(require 's)
(require 'f)
;; ELPA -----------------------------------------------------------------------
(when modern
(require 'package)
(setq package-user-dir (concat "~/src/mine/elpa.d"))
(setq proto "https")
(add-to-list 'package-archives (cons "melpa" (concat proto "://melpa.org/packages/")) t)
(add-to-list 'package-archives (cons "melpa-stable" (concat proto "://stable.melpa.org/packages/")) t)
(add-to-list 'package-archives (cons "marmalade" "http://melpa.org/packages/") t)
(package-initialize)
(setq package-check-signature nil)
)
;; linum ----------------------------------------------------------------------
;; Line numbers to the left
(require 'linum)
(global-linum-mode t)
;; Jump buffers with M-<arrows>
(require 'windmove)
(windmove-default-keybindings 'meta)
;; Highlight current line
(global-hl-line-mode +1)
;; typopunct ----------------------------------------------------------------------
(add-to-list 'load-path (concat emacs-dir "/site-lisp/typopunct"))
(require 'typopunct)
(provide 'basic-extras)