-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.mg3
98 lines (86 loc) · 2.5 KB
/
.mg3
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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
;;
;; General keys and variables
;;
(global-set-key "\ez" "save-buffers-kill-emacs 1")
(global-set-key "\e\^?" 'backward-kill-word)
(global-set-key "\^h" 'delete-backward-char)
(global-set-key "\e\^h" 'backward-kill-word)
(global-set-key "\e " 'set-mark-command)
(global-set-key "\eg" 'goto-line)
(global-set-key "\ep" 'fill-paragraph)
(global-set-key "\esa" 'search-again)
(global-set-key "\ess" 'search-all-forward)
(global-set-key "\esr" 'search-all-backward)
(global-set-key "\esf" 'search-forward)
(global-set-key "\esb" 'search-backward)
(global-set-key "\esF" 'isearch-forward)
(global-set-key "\esB" 'isearch-backward)
; Fri 10 Jun 2022
auto-execute "*" "auto-indent-mode"
; Sat 28 May 2022
(set-variable "trim-whitespace" 1)
; Fri, 20 May 2022
(set-variable "tabs-with-spaces" 1)
;
; Sun, 26 Apr 2020 07:04:39 +0000
;
(global-set-key "\e[5~" 'scroll-down)
(global-set-key "\e[6~" 'scroll-up)
;
; Fri, 20 Nov 2020 07:11:28 +0100
;
(global-set-key "\^x;" "comment-line 1")
;
; Tue, 04 Apr 2017 15:04:44 +0200
;
(global-set-key "\e\^d" "yank-process \"LC_ALL=C date '+%a, %d %b %Y %H:%m:%S %z'\"")
(set-default-mode "lf")
(set-variable "blink-wait" 0)
;
; fill-options for filling block comments in C, and use hard tabs with
; auto-cleanup.
;
create-macro "myprog" "lv fill-options 9; local-set-tabs 8 0"
;;
;; LaTEX with filling
;;
(set-variable "fill-column" 72)
(auto-execute *.tex 'auto-fill-mode)
;;
;; Explicitly NO backups
;; Sun, 07 Jun 2020 08:06:35 +0200
;;
(set-variable "make-backup" 0)
;;
;; Python
;;
shebang "python"
auto-execute "*.py" "python-mode"
;;
;; for scapy development
;;
;;auto-execute "*.uts" "python-mode"
;;
;; GNU make
;;
;;
;; This is when you compile with make-mode
;;
;; auto-execute "Makefile" "make-mode"
;; auto-execute "GNUMakefile" "make-mode"
;; auto-execute "*.mak" "make-mode; lv comment-begin \"## \""
;;
;; which only does this: so what is the merit of it?
;;
auto-execute "Makefile" "lv comment-begin \"# \""
auto-execute "GNUMakefile" "lv comment-begin \"# \""
auto-execute "*.mak" "lv comment-begin \"# \""
shebang "bash"
auto-execute "*.sh" "lv comment-begin \"# \"; local-set-tabs 2 1 1"
auto-execute ".bash_aliases" "lv comment-begin \"# \"; local-set-tabs 2 1 1"
auto-execute ".bashrc" "lv comment-begin \"# \"; local-set-tabs 2 1 1"
;
; C mode
;
auto-execute "*.[ch]" "myprog; local-set-mode stdc; lv clike-style 4; lv comment-begin '// '; local-set-tabs 2 1 1"
;; auto-execute "*.c" "myprog; local-set-mode stdc; lv clike-style 4; local-set-tabs 2 1 1"