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 +++++------- .emacs.d/lisp/yaml-mode.el | 2 +- 2 files changed, 6 insertions(+), 8 deletions(-) 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/") diff --git a/.emacs.d/lisp/yaml-mode.el b/.emacs.d/lisp/yaml-mode.el index d3c1da8..c18fcd9 100644 --- a/.emacs.d/lisp/yaml-mode.el +++ b/.emacs.d/lisp/yaml-mode.el @@ -8,7 +8,7 @@ ;; URL: https://github.com/yoshiki/yaml-mode ;; Package-Requires: ((emacs "24.1")) ;; Keywords: data yaml -;; Version: 0.0.15 +;; Version: 0.0.16 ;; This file is not part of Emacs -- cgit v1.3