From f78074a490a25e6cdce112e4fda4ba6c28ad1751 Mon Sep 17 00:00:00 2001 From: Simeon Simeonov Date: Fri, 28 Aug 2015 11:13:21 +0200 Subject: Add .emacs.pure --- .emacs.pure | 58 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 58 insertions(+) create mode 100644 .emacs.pure diff --git a/.emacs.pure b/.emacs.pure new file mode 100644 index 0000000..40c5ebd --- /dev/null +++ b/.emacs.pure @@ -0,0 +1,58 @@ +;; Set up the keyboard so the delete key on both the regular keyboard +;; and the keypad delete the character under the cursor and to the right +;; under X, instead of the default, backspace behavior. +(global-set-key [delete] 'delete-char) +(global-set-key [kp-delete] 'delete-char) + +;; My own key bindings ;; +;;(global-set-key [f1] 'compile) + +;; Turn on font-lock mode for Emacs +(global-font-lock-mode t) + +;; custom-set-faces was added by Custom. +;; If you edit it by hand, you could mess it up, so be careful. +;; Your init file should contain only one such instance. +;; If there is more than one, they won't work right. +(custom-set-faces + ;; custom-set-faces was added by Custom. + ;; If you edit it by hand, you could mess it up, so be careful. + ;; Your init file should contain only one such instance. + ;; If there is more than one, they won't work right. + '(font-lock-comment-face ((nil (:foreground "red"))))) + +;;(setq require-final-newline t) +(setq require-final-newline nil) +;; Stop at the end of the file, not just add lines +(setq next-line-add-newlines nil) + +;; Display columns +(setq column-number-mode t) +(setq inhibit-splash-screen t) + +;; vim-Scroll +(setq scroll-conservatively 1) + +;; Various +(setq auto-save-default nil) +(setq make-backup-files nil) +(setq display-time-24hr-format t) +(display-time-mode 1) + +;; UTF-8 support (legacy workaround for Ubuntu) +(set-default-coding-systems 'utf-8) +(set-terminal-coding-system 'utf-8) +(set-keyboard-coding-system 'utf-8) + + +;; Programming section + +;; Indentation +;;(setq-default c-basic-offset 4 tab-width 4 indent-tabs-mode nil) +(setq-default c-basic-offset 4 tab-width 4) + +;; Default coding style +(setq c-default-style "bsd") + +;; Don't attempt to guess the Python-indent +(setq python-indent-guess-indent-offset nil) -- cgit v1.3