diff options
| -rw-r--r-- | .emacs.pure | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/.emacs.pure b/.emacs.pure new file mode 100644 index 0000000..40c5ebd --- /dev/null +++ b/.emacs.pure | |||
| @@ -0,0 +1,58 @@ | |||
| 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 | (global-set-key [delete] 'delete-char) | ||
| 5 | (global-set-key [kp-delete] 'delete-char) | ||
| 6 | |||
| 7 | ;; My own key bindings ;; | ||
| 8 | ;;(global-set-key [f1] 'compile) | ||
| 9 | |||
| 10 | ;; Turn on font-lock mode for Emacs | ||
| 11 | (global-font-lock-mode t) | ||
| 12 | |||
| 13 | ;; custom-set-faces was added by Custom. | ||
| 14 | ;; If you edit it by hand, you could mess it up, so be careful. | ||
| 15 | ;; Your init file should contain only one such instance. | ||
| 16 | ;; If there is more than one, they won't work right. | ||
| 17 | (custom-set-faces | ||
| 18 | ;; custom-set-faces was added by Custom. | ||
| 19 | ;; If you edit it by hand, you could mess it up, so be careful. | ||
| 20 | ;; Your init file should contain only one such instance. | ||
| 21 | ;; If there is more than one, they won't work right. | ||
| 22 | '(font-lock-comment-face ((nil (:foreground "red"))))) | ||
| 23 | |||
| 24 | ;;(setq require-final-newline t) | ||
| 25 | (setq require-final-newline nil) | ||
| 26 | ;; Stop at the end of the file, not just add lines | ||
| 27 | (setq next-line-add-newlines nil) | ||
| 28 | |||
| 29 | ;; Display columns | ||
| 30 | (setq column-number-mode t) | ||
| 31 | (setq inhibit-splash-screen t) | ||
| 32 | |||
| 33 | ;; vim-Scroll | ||
| 34 | (setq scroll-conservatively 1) | ||
| 35 | |||
| 36 | ;; Various | ||
| 37 | (setq auto-save-default nil) | ||
| 38 | (setq make-backup-files nil) | ||
| 39 | (setq display-time-24hr-format t) | ||
| 40 | (display-time-mode 1) | ||
| 41 | |||
| 42 | ;; UTF-8 support (legacy workaround for Ubuntu) | ||
| 43 | (set-default-coding-systems 'utf-8) | ||
| 44 | (set-terminal-coding-system 'utf-8) | ||
| 45 | (set-keyboard-coding-system 'utf-8) | ||
| 46 | |||
| 47 | |||
| 48 | ;; Programming section | ||
| 49 | |||
| 50 | ;; Indentation | ||
| 51 | ;;(setq-default c-basic-offset 4 tab-width 4 indent-tabs-mode nil) | ||
| 52 | (setq-default c-basic-offset 4 tab-width 4) | ||
| 53 | |||
| 54 | ;; Default coding style | ||
| 55 | (setq c-default-style "bsd") | ||
| 56 | |||
| 57 | ;; Don't attempt to guess the Python-indent | ||
| 58 | (setq python-indent-guess-indent-offset nil) | ||
