From fb01ddbc487794a2d53fb13733dc03f73dee37ed Mon Sep 17 00:00:00 2001 From: Simeon Simeonov Date: Sat, 22 Oct 2022 11:51:14 +0200 Subject: Update markdown-modeand yaml-mode. Update .emacs --- .emacs | 3 ++- .emacs.d/lisp/markdown-mode.el | 6 ++++-- .emacs.d/lisp/yaml-mode.el | 2 +- 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/.emacs b/.emacs index 3946dcd..284f5da 100644 --- a/.emacs +++ b/.emacs @@ -76,7 +76,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 js-indent-level 4 indent-tabs-mode nil sgml-basic-offset 4) +;;(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 diff --git a/.emacs.d/lisp/markdown-mode.el b/.emacs.d/lisp/markdown-mode.el index aa27e4e..ae6dc47 100644 --- a/.emacs.d/lisp/markdown-mode.el +++ b/.emacs.d/lisp/markdown-mode.el @@ -2923,7 +2923,8 @@ When FACELESS is non-nil, do not return matches where faces have been applied." (markdown-in-comment-p) (markdown-range-property-any begin begin 'face '(markdown-url-face - markdown-plain-url-face)) + markdown-plain-url-face + markdown-markup-face)) (markdown-range-property-any begin end 'face '(markdown-bold-face markdown-list-face @@ -8156,13 +8157,13 @@ newline after." (let* ((modified (buffer-modified-p)) (buffer-undo-list t) (inhibit-read-only t) - (inhibit-point-motion-hooks t) deactivate-mark buffer-file-truename) (unwind-protect (save-excursion (save-match-data (save-restriction + (cursor-intangible-mode +1) ;; inhibit-point-motion-hooks is obsoleted since Emacs 29 ;; Extend the region to fontify so that it starts ;; and ends at safe places. (cl-multiple-value-bind (new-from new-to) @@ -8179,6 +8180,7 @@ newline after." (markdown-unfontify-region-wiki-links new-from new-to) ;; Now do the fontification. (markdown-fontify-region-wiki-links new-from new-to)))))) + (cursor-intangible-mode -1) (and (not modified) (buffer-modified-p) (set-buffer-modified-p nil))))) diff --git a/.emacs.d/lisp/yaml-mode.el b/.emacs.d/lisp/yaml-mode.el index 07ac224..fc46e05 100644 --- a/.emacs.d/lisp/yaml-mode.el +++ b/.emacs.d/lisp/yaml-mode.el @@ -178,7 +178,7 @@ that key is pressed to begin a block literal." "y" "Y" "yes" "Yes" "YES" "n" "N" "no" "No" "NO" "true" "True" "TRUE" "false" "False" "FALSE" "on" "On" "ON" "off" "Off" "OFF") t) - " *$") + "\\_>") "Regexp matching certain scalar constants in scalar context.") -- cgit v1.3