From 363c7b265e5fe5358a079e3058a661d23f978fd8 Mon Sep 17 00:00:00 2001 From: Simeon Simeonov Date: Fri, 13 Oct 2023 20:52:40 +0200 Subject: Update yaml-mode.el and fix max chars marking in .emacs --- .emacs | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) (limited to '.emacs') diff --git a/.emacs b/.emacs index 8eb7c2e..8c3db0b 100644 --- a/.emacs +++ b/.emacs @@ -41,7 +41,7 @@ '(font-lock-variable-name-face ((nil (:foreground "sienna")))) '(font-lock-warning-face ((nil (:foreground "Red1")))) '(warning ((nil (:foreground "DarkOrange")))) - ) +) ;;(setq require-final-newline t) (setq require-final-newline nil) @@ -95,12 +95,10 @@ ;; 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)))) +(setq whitespace-line-column 79) ;; limit line length +(setq whitespace-style '(face lines-tail)) +(add-hook 'prog-mode-hook 'whitespace-mode) +;;(add-hook 'python-mode-hook 'whitespace-mode) ;; doesn't work in 29 ;; Custom plugins (add-to-list 'load-path "~/.emacs.d/lisp/") -- cgit v1.3