diff options
| author | Simeon Simeonov | 2020-05-11 13:22:02 +0200 |
|---|---|---|
| committer | Simeon Simeonov | 2020-05-11 13:22:02 +0200 |
| commit | 226f5277d493133338f87e5bf71bfffbf0aa7321 (patch) | |
| tree | 8e84c573df3d8b038b79005576fdb171d3530882 /.emacs.pure | |
| parent | 0e3b7027a9f5f1c57ff13af96cba042a5a16142d (diff) | |
Update yaml-mode and make .emacs .emacs.pure and .emacs.termfix compliant with eachother
Diffstat (limited to '.emacs.pure')
| -rw-r--r-- | .emacs.pure | 27 |
1 files changed, 25 insertions, 2 deletions
diff --git a/.emacs.pure b/.emacs.pure index 40c5ebd..085f6ea 100644 --- a/.emacs.pure +++ b/.emacs.pure | |||
| @@ -4,6 +4,9 @@ | |||
| 4 | (global-set-key [delete] 'delete-char) | 4 | (global-set-key [delete] 'delete-char) |
| 5 | (global-set-key [kp-delete] 'delete-char) | 5 | (global-set-key [kp-delete] 'delete-char) |
| 6 | 6 | ||
| 7 | (global-set-key (kbd "S-C-<left>") 'shrink-window-horizontally) | ||
| 8 | (global-set-key (kbd "S-C-<right>") 'enlarge-window-horizontally) | ||
| 9 | |||
| 7 | ;; My own key bindings ;; | 10 | ;; My own key bindings ;; |
| 8 | ;;(global-set-key [f1] 'compile) | 11 | ;;(global-set-key [f1] 'compile) |
| 9 | 12 | ||
| @@ -44,15 +47,35 @@ | |||
| 44 | (set-terminal-coding-system 'utf-8) | 47 | (set-terminal-coding-system 'utf-8) |
| 45 | (set-keyboard-coding-system 'utf-8) | 48 | (set-keyboard-coding-system 'utf-8) |
| 46 | 49 | ||
| 50 | (put 'downcase-region 'disabled nil) | ||
| 51 | (kill-buffer "*scratch*") | ||
| 52 | |||
| 47 | 53 | ||
| 48 | ;; Programming section | 54 | ;; Programming section |
| 49 | 55 | ||
| 50 | ;; Indentation | 56 | ;; Indentation |
| 51 | ;;(setq-default c-basic-offset 4 tab-width 4 indent-tabs-mode nil) | 57 | (setq-default c-basic-offset 4 tab-width 4 indent-tabs-mode nil) |
| 52 | (setq-default c-basic-offset 4 tab-width 4) | 58 | ;;(setq-default c-basic-offset 4 tab-width 4) |
| 53 | 59 | ||
| 54 | ;; Default coding style | 60 | ;; Default coding style |
| 55 | (setq c-default-style "bsd") | 61 | (setq c-default-style "bsd") |
| 56 | 62 | ||
| 57 | ;; Don't attempt to guess the Python-indent | 63 | ;; Don't attempt to guess the Python-indent |
| 58 | (setq python-indent-guess-indent-offset nil) | 64 | (setq python-indent-guess-indent-offset nil) |
| 65 | |||
| 66 | ;; Bind .ino (Arduino project) extension to C++ mode | ||
| 67 | (add-to-list 'auto-mode-alist '("\\.ino\\'" . c++-mode)) | ||
| 68 | |||
| 69 | ;; Enable which-function-mode for C, C++ and Python | ||
| 70 | (setq which-func-modes '(c-mode c++-mode java-mode python-mode)) | ||
| 71 | (which-function-mode t) | ||
| 72 | |||
| 73 | ;; Python | ||
| 74 | (require 'whitespace) | ||
| 75 | (add-hook 'python-mode-hook | ||
| 76 | (lambda () | ||
| 77 | (progn | ||
| 78 | (setq whitespace-line-column 79) | ||
| 79 | (setq whitespace-style '(face empty tabs lines-tail trailing)) | ||
| 80 | (whitespace-mode)))) | ||
| 81 | |||
