summaryrefslogtreecommitdiff
path: root/.emacs.d/lisp/yaml-mode.el
diff options
context:
space:
mode:
authorSimeon Simeonov2018-04-10 12:01:58 +0200
committerSimeon Simeonov2018-04-10 12:01:58 +0200
commitea4b3cb0f2d507bf0bc31287418c3bf24349a480 (patch)
treec4025ecef48dee4c38cc722914d487dbfdc2da88 /.emacs.d/lisp/yaml-mode.el
parente148d19f5d03fef8523c0c6e79c880ce562cfddc (diff)
Upgrade php-mode and yaml-mode
Diffstat (limited to '.emacs.d/lisp/yaml-mode.el')
-rw-r--r--.emacs.d/lisp/yaml-mode.el8
1 files changed, 5 insertions, 3 deletions
diff --git a/.emacs.d/lisp/yaml-mode.el b/.emacs.d/lisp/yaml-mode.el
index c3416dd..9f76c38 100644
--- a/.emacs.d/lisp/yaml-mode.el
+++ b/.emacs.d/lisp/yaml-mode.el
@@ -438,13 +438,15 @@ otherwise do nothing."
438 438
439(defun yaml-fill-paragraph (&optional justify region) 439(defun yaml-fill-paragraph (&optional justify region)
440 "Fill paragraph. 440 "Fill paragraph.
441This behaves as `fill-paragraph' except that filling does not 441Outside of comments, this behaves as `fill-paragraph' except that
442cross boundaries of block literals." 442filling does not cross boundaries of block literals. Inside comments,
443this will do usual adaptive fill behaviors."
443 (interactive "*P") 444 (interactive "*P")
444 (save-restriction 445 (save-restriction
445 (yaml-narrow-to-block-literal) 446 (yaml-narrow-to-block-literal)
446 (let ((fill-paragraph-function nil)) 447 (let ((fill-paragraph-function nil))
447 (fill-paragraph justify region)))) 448 (or (fill-comment-paragraph justify)
449 (fill-paragraph justify region)))))
448 450
449(defun yaml-set-imenu-generic-expression () 451(defun yaml-set-imenu-generic-expression ()
450 (make-local-variable 'imenu-generic-expression) 452 (make-local-variable 'imenu-generic-expression)