summaryrefslogtreecommitdiff
path: root/.emacs.termfix
diff options
context:
space:
mode:
Diffstat (limited to '.emacs.termfix')
-rw-r--r--.emacs.termfix21
1 files changed, 12 insertions, 9 deletions
diff --git a/.emacs.termfix b/.emacs.termfix
index d879257..704937f 100644
--- a/.emacs.termfix
+++ b/.emacs.termfix
@@ -1,13 +1,6 @@
1;; Set up the keyboard so the delete key on both the regular keyboard 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 2;; and the keypad delete the character under the cursor and to the right
3;; under X, instead of the default, backspace behavior. 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) 4(global-set-key [delete] 'delete-char)
12(global-set-key [kp-delete] 'delete-char) 5(global-set-key [kp-delete] 'delete-char)
13 6
@@ -66,6 +59,7 @@
66(set-keyboard-coding-system 'utf-8) 59(set-keyboard-coding-system 'utf-8)
67 60
68(put 'downcase-region 'disabled nil) 61(put 'downcase-region 'disabled nil)
62(kill-buffer "*scratch*")
69 63
70 64
71;; Programming section 65;; Programming section
@@ -87,13 +81,21 @@
87(setq which-func-modes '(c-mode c++-mode java-mode python-mode)) 81(setq which-func-modes '(c-mode c++-mode java-mode python-mode))
88(which-function-mode t) 82(which-function-mode t)
89 83
84;; Python
85(require 'whitespace)
86(add-hook 'python-mode-hook
87 (lambda ()
88 (progn
89 (setq whitespace-line-column 79)
90 (setq whitespace-style '(face empty tabs lines-tail trailing))
91 (whitespace-mode))))
90 92
91;; Custom plugins 93;; Custom plugins
92(add-to-list 'load-path "~/.emacs.d/lisp/") 94(add-to-list 'load-path "~/.emacs.d/lisp/")
93 95
94;; PHP 96;; PHP
95;; (autoload 'php-mode "php-mode" "Mode for editing PHP source files") 97;;(autoload 'php-mode "php-mode" "Mode for editing PHP source files")
96;; (add-to-list 'auto-mode-alist '("\\.\\(inc\\|php[s34]?\\)" . php-mode)) 98;;(add-to-list 'auto-mode-alist '("\\.\\(inc\\|php[s34]?\\)" . php-mode))
97 99
98;; Lua 100;; Lua
99(autoload 'lua-mode "lua-mode" "Lua editing mode." t) 101(autoload 'lua-mode "lua-mode" "Lua editing mode." t)
@@ -104,6 +106,7 @@
104(require 'yaml-mode) 106(require 'yaml-mode)
105(add-to-list 'auto-mode-alist '("\\.yml$" . yaml-mode)) 107(add-to-list 'auto-mode-alist '("\\.yml$" . yaml-mode))
106 108
109
107;; yasnippet 110;; yasnippet
108(require 'yasnippet) 111(require 'yasnippet)
109(yas-global-mode 1) 112(yas-global-mode 1)