-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.emacs.20220910
executable file
·71 lines (52 loc) · 1.91 KB
/
.emacs.20220910
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
67
68
69
70
71
; .Emacs file for Debian 9
(setq backup-directory-alist `(("." . "/home/olivier/.emacs-saves")))
;==== For markdown support
; If it does not work: apt install elpa-markdown-mode markdown
(require 'package)
(add-to-list 'package-archives
; '("melpa-stable" . "https://stable.melpa.org/packages/"))
'("melpa" . "https://melpa.org/packages/") t)
(package-initialize)
;=== Enabling line numbers globally to emacs
(when (version<= "26.0.50" emacs-version )
(global-display-line-numbers-mode))
;=== Enabling recent files
(recentf-mode 1)
(setq recentf-max-menu-items 25)
(global-set-key "\C-x\ \C-r" 'recentf-open-files)
;=== Default fonts
(add-to-list 'default-frame-alist '(font . "Monospace-8"))
(set-face-attribute 'default t :font "Monospace-8")
(set-face-attribute 'default nil :font "Monospace-8")
(set-frame-font "Monospace-8" nil t)
(set-default-font "Monospace-8")
;=== Color of editor
;(set-foreground-color "white")
;(set-background-color "white smoke")
;(set-face-attribute 'region nil :background "gold" :foreground "black")
; color of comments
;(set-face-foreground 'font-lock-string-face "black")
;(set-face-background 'font-lock-string-face "aquamarine")
(set-face-foreground 'font-lock-comment-face "black")
(set-face-background 'font-lock-comment-face "pale green")
;;;
;; n3 mode
;;
;(add-to-list 'load-path "~/.emacs.d/n3-mode.el")
(add-to-list 'load-path "~/.emacs.d/vendor")
(autoload 'n3-mode "n3-mode" "Major mode for OWL or N3 files" t)
;; Turn on font lock when in n3 mode
(add-hook 'n3-mode-hook
'turn-on-font-lock)
(setq auto-mode-alist
(append
(list
'("\\.n3" . n3-mode)
'("\\.owl" . n3-mode))
auto-mode-alist))
;; Replace {path} with the full path to n3-mode.el on your system.
;; If you want to make it load just a little faster;
;; C-x f n3-mode.el
;; M-x byte-compile-file n3-mode.el
(setq-default indent-tabs-mode nil)
(delete-selection-mode 1)