summaryrefslogtreecommitdiff
path: root/emacs.el
blob: eb58dab5eb3f47cebba8c63ae9c6fde59be250df (about) (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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
;;; Disable auto-backup
(setq-default make-backup-files
	      nil)

;;; Enable MELPA repository
(require 'package)
(add-to-list 'package-archives
	     '("melpa" . "https://melpa.org/packages/")
	     t)
(package-initialize)

;;; https://github.com/fimblo/dot.emacs
;;; Theme Activation
(load-theme 'manoj-dark)

;;; https://elpa.gnu.org/packages/aggressive-indent.html
;;; Automatic Activation of Aggressive Indent
(setq-default global-aggressive-indent-mode
	      1)

;;; https://jeko.frama.io/en/emacs.html
;;; Jeko's suggested configuration

;; Highlight the pair of delimiters under the cursor
(setq-default
 show-paren-mode 1
 show-paren-delay 0)

;; Edit several strings of characters in the same way simultaneously
(require 'iedit)

;; Edit several places in the file in the same way simultaneously
;; (require 'multiple-cursors)
;; (global-set-key (kbd "C-S-c C-S-c")
;; 		'mc/edit-lines)
;; (global-set-key (kbd "C->")
;; 		'mc/mark-next-like-this)
;; (global-set-key (kbd "C-<")
;; 		'mc/mark-previous-like-this)
;; (global-set-key (kbd "C-c C-<")
;; 		'mc/mark-all-like-this)

;;; https://guix.gnu.org/manual/en/html_node/The-Perfect-Setup.html
;;; Copyright Information
(setq-default
 user-full-name "Marek Paśnikowski"
 user-mail-address "marekpasnikowski@protonmail.com")

;;; Startup Screen Inhibition
(setq-default inhibit-startup-screen
	      t)

;; Enable the column-80 line
(setq-default
 global-display-fill-column-indicator-mode 1
 display-fill-column-indicator-column 79)

;; Prepare Literate Programming
(setq-default
 org-confirm-babel-evaluate nil
 org-src-fontify-natively t
 org-src-tab-acts-natively t)
(org-babel-do-load-languages 'org-babel-load-languages
			     '((emacs-lisp . t)
			       (scheme . t )
			       (shell . t )))