From 226f5277d493133338f87e5bf71bfffbf0aa7321 Mon Sep 17 00:00:00 2001 From: Simeon Simeonov Date: Mon, 11 May 2020 13:22:02 +0200 Subject: Update yaml-mode and make .emacs .emacs.pure and .emacs.termfix compliant with eachother --- .emacs.termfix | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) (limited to '.emacs.termfix') diff --git a/.emacs.termfix b/.emacs.termfix index d879257..704937f 100644 --- a/.emacs.termfix +++ b/.emacs.termfix @@ -1,13 +1,6 @@ ;; 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. - -;; Added by Package.el. This must come before configurations of -;; installed packages. Don't delete this line. If you don't want it, -;; just comment it out by adding a semicolon to the start of the line. -;; You may delete these explanatory comments. -;;(package-initialize) - (global-set-key [delete] 'delete-char) (global-set-key [kp-delete] 'delete-char) @@ -66,6 +59,7 @@ (set-keyboard-coding-system 'utf-8) (put 'downcase-region 'disabled nil) +(kill-buffer "*scratch*") ;; Programming section @@ -87,13 +81,21 @@ (setq which-func-modes '(c-mode c++-mode java-mode python-mode)) (which-function-mode t) +;; Python +(require 'whitespace) +(add-hook 'python-mode-hook + (lambda () + (progn + (setq whitespace-line-column 79) + (setq whitespace-style '(face empty tabs lines-tail trailing)) + (whitespace-mode)))) ;; Custom plugins (add-to-list 'load-path "~/.emacs.d/lisp/") ;; PHP -;; (autoload 'php-mode "php-mode" "Mode for editing PHP source files") -;; (add-to-list 'auto-mode-alist '("\\.\\(inc\\|php[s34]?\\)" . php-mode)) +;;(autoload 'php-mode "php-mode" "Mode for editing PHP source files") +;;(add-to-list 'auto-mode-alist '("\\.\\(inc\\|php[s34]?\\)" . php-mode)) ;; Lua (autoload 'lua-mode "lua-mode" "Lua editing mode." t) @@ -104,6 +106,7 @@ (require 'yaml-mode) (add-to-list 'auto-mode-alist '("\\.yml$" . yaml-mode)) + ;; yasnippet (require 'yasnippet) (yas-global-mode 1) -- cgit v1.3