-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinit.el
37 lines (29 loc) · 1.19 KB
/
init.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
;; SPDX-License-Identifier: MIT
;;
;;; init.el --- GNU Emacs Init file
;;
;; Copyright 2016 Matthew Krupcale <[email protected]>
;;
;(package-initialize)
(require 'package)
;; Set file for Emacs customization information
(setq custom-file (concat user-emacs-directory "custom.el"))
(when (file-exists-p custom-file)
(load-file custom-file))
;; Add all libraries and packages inside `elisp/' and its subdirs to
;; the load-path
(let ((default-directory (concat user-emacs-directory "elisp/")))
(normal-top-level-add-to-load-path '("."))
(normal-top-level-add-subdirs-to-load-path))
(global-font-lock-mode 1) ;; Enable FontLock-mode
(winner-mode 1) ;; Enable winner-mode
(setq column-number-mode t) ;; Show column number
(setq-default fill-column 80) ;; Default to fill width 80
(setq user-mail-address "[email protected]")
;; Activate Cua-mode
(cua-mode t)
(setq cua-auto-tabify-rectangles nil) ;; Don't tabify after rectangle commands
(transient-mark-mode 1) ;; No region when it is not highlighted
(setq cua-keep-region-after-copy t) ;; Standard Windows behaviour
;; postpone real initialization until after ELPA is loaded
(add-hook 'after-init-hook (lambda () (load-library "after-init")))