summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimeon Simeonov2020-12-17 15:13:12 +0100
committerSimeon Simeonov2020-12-17 15:13:12 +0100
commit4fbfa5db6d2819f528698b78d15634affdf9b9a9 (patch)
treee3f6e383ca78740a436c507c964ee0f2d44025c2
parent06a86178e63ebb993f4c0bac4430ee297730684d (diff)
Remove .emacs.termfix
-rw-r--r--.emacs.termfix133
1 files changed, 0 insertions, 133 deletions
diff --git a/.emacs.termfix b/.emacs.termfix
deleted file mode 100644
index 6195cb4..0000000
--- a/.emacs.termfix
+++ /dev/null
@@ -1,133 +0,0 @@
1;; Set up the keyboard so the delete key on both the regular keyboard
2;; and the keypad delete the character under the cursor and to the right
3;; under X, instead of the default, backspace behavior.
4
5;; Added by Package.el. This must come before configurations of
6;; installed packages. Don't delete this line. If you don't want it,
7;; just comment it out by adding a semicolon to the start of the line.
8;; You may delete these explanatory comments.
9;;(package-initialize)
10
11(global-set-key [delete] 'delete-char)
12(global-set-key [kp-delete] 'delete-char)
13
14(global-set-key (kbd "S-C-<left>") 'shrink-window-horizontally)
15(global-set-key (kbd "S-C-<right>") 'enlarge-window-horizontally)
16
17;; My own key bindings ;;
18;;(global-set-key [f1] 'compile)
19
20;; Turn on font-lock mode for Emacs
21(global-font-lock-mode t)
22
23;; custom-set-faces was added by Custom.
24;; If you edit it by hand, you could mess it up, so be careful.
25;; Your init file should contain only one such instance.
26;; If there is more than one, they won't work right.
27(custom-set-faces
28 ;; custom-set-faces was added by Custom.
29 ;; If you edit it by hand, you could mess it up, so be careful.
30 ;; Your init file should contain only one such instance.
31 ;; If there is more than one, they won't work right.
32 '(error ((nil (:foreground "Red1"))))
33 '(font-lock-builtin-face ((nil (:foreground "dark slate blue"))))
34 '(font-lock-comment-face ((nil (:foreground "Firebrick"))))
35 '(font-lock-constant-face ((nil (:foreground "dark cyan"))))
36 '(font-lock-function-name-face ((nil (:foreground "Blue1"))))
37 '(font-lock-keyword-face ((nil (:foreground "Purple"))))
38 '(font-lock-string-face ((nil (:foreground "VioletRed4"))))
39 '(font-lock-type-face ((nil (:foreground "ForestGreen"))))
40 '(font-lock-variable-name-face ((nil (:foreground "sienna"))))
41 '(font-lock-warning-face ((nil (:foreground "Red1"))))
42 '(warning ((nil (:foreground "DarkOrange"))))
43 )
44
45;;(setq require-final-newline t)
46(setq require-final-newline nil)
47;; Stop at the end of the file, not just add lines
48(setq next-line-add-newlines nil)
49
50;; Display columns
51(setq column-number-mode t)
52(setq inhibit-splash-screen t)
53
54;; vim-Scroll
55(setq scroll-conservatively 1)
56
57;; Various
58(setq auto-save-default nil)
59(setq make-backup-files nil)
60(setq display-time-24hr-format t)
61(display-time-mode 1)
62
63;; UTF-8 support (legacy workaround for Ubuntu)
64(set-default-coding-systems 'utf-8)
65(set-terminal-coding-system 'utf-8)
66(set-keyboard-coding-system 'utf-8)
67
68(put 'downcase-region 'disabled nil)
69(kill-buffer "*scratch*")
70
71
72;; Programming section
73
74;; Indentation
75(setq-default c-basic-offset 4 tab-width 4 indent-tabs-mode nil)
76;;(setq-default c-basic-offset 4 tab-width 4)
77
78;; Default coding style
79(setq c-default-style "bsd")
80
81;; Don't attempt to guess the Python-indent
82(setq python-indent-guess-indent-offset nil)
83
84;; Bind .ino (Arduino project) extension to C++ mode
85(add-to-list 'auto-mode-alist '("\\.ino\\'" . c++-mode))
86
87;; Enable which-function-mode for C, C++ and Python
88(setq which-func-modes '(c-mode c++-mode java-mode python-mode))
89(which-function-mode t)
90
91;; Python
92(require 'whitespace)
93(add-hook 'python-mode-hook
94 (lambda ()
95 (progn
96 (setq whitespace-line-column 79)
97 (setq whitespace-style '(face empty tabs lines-tail trailing))
98 (whitespace-mode))))
99
100;; Custom plugins
101(add-to-list 'load-path "~/.emacs.d/lisp/")
102
103;; PHP
104;;(autoload 'php-mode "php-mode" "Mode for editing PHP source files")
105;;(add-to-list 'auto-mode-alist '("\\.\\(inc\\|php[s34]?\\)" . php-mode))
106
107
108;; Lua
109(autoload 'lua-mode "lua-mode" "Lua editing mode." t)
110(add-to-list 'auto-mode-alist '("\\.lua$" . lua-mode))
111;;(add-to-list 'interpreter-mode-alist '("lua" . lua-mode))
112
113
114;; Markdown
115(autoload 'markdown-mode "markdown-mode"
116 "Major mode for editing Markdown files" t)
117(add-to-list 'auto-mode-alist '("\\.markdown\\'" . markdown-mode))
118(add-to-list 'auto-mode-alist '("\\.md\\'" . markdown-mode))
119
120(autoload 'gfm-mode "markdown-mode"
121 "Major mode for editing GitHub Flavored Markdown files" t)
122(add-to-list 'auto-mode-alist '("README\\.md\\'" . gfm-mode))
123
124
125;; YAML
126(require 'yaml-mode)
127(add-to-list 'auto-mode-alist '("\\.yml$" . yaml-mode))
128
129
130;; yasnippet
131(require 'yasnippet)
132(yas-global-mode 1)
133(yas/load-directory "~/.emacs.d/snippets")