diff options
| author | Simeon Simeonov | 2018-04-10 12:01:58 +0200 |
|---|---|---|
| committer | Simeon Simeonov | 2018-04-10 12:01:58 +0200 |
| commit | ea4b3cb0f2d507bf0bc31287418c3bf24349a480 (patch) | |
| tree | c4025ecef48dee4c38cc722914d487dbfdc2da88 /.emacs.d/lisp/yaml-mode.el | |
| parent | e148d19f5d03fef8523c0c6e79c880ce562cfddc (diff) | |
Upgrade php-mode and yaml-mode
Diffstat (limited to '.emacs.d/lisp/yaml-mode.el')
| -rw-r--r-- | .emacs.d/lisp/yaml-mode.el | 8 |
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. |
| 441 | This behaves as `fill-paragraph' except that filling does not | 441 | Outside of comments, this behaves as `fill-paragraph' except that |
| 442 | cross boundaries of block literals." | 442 | filling does not cross boundaries of block literals. Inside comments, |
| 443 | this 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) |
