File tree Expand file tree Collapse file tree 3 files changed +10
-4
lines changed Expand file tree Collapse file tree 3 files changed +10
-4
lines changed Original file line number Diff line number Diff line change 11(require 'yasnippet )
22
3- (add-hook 'bibtex-mode-hook
4- '(lambda () (set (make-local-variable 'yas-indent-line ) nil )))
3+ (add-hook 'bibtex-mode-hook #'yasnippet-snippets--no-indent )
Original file line number Diff line number Diff line change 3535 " \n " ))))
3636
3737
38- (add-hook 'python-mode-hook
39- '(lambda () (set (make-local-variable 'yas-indent-line ) 'fixed )))
38+ (add-hook 'python-mode-hook #'yasnippet-snippets--fixed-indent )
Original file line number Diff line number Diff line change @@ -58,6 +58,14 @@ customizable variable used for a snippet expansion.
5858See Info node `(elisp)Customization Types'."
5959 :group 'yasnippet )
6060
61+ (defun yasnippet-snippets--fixed-indent ()
62+ " Set `yas-indent-line' to `fixed' ."
63+ (set (make-local-variable 'yas-indent-line ) 'fixed ))
64+
65+ (defun yasnippet-snippets--no-indent ()
66+ " Set `yas-indent-line' to nil."
67+ (set (make-local-variable 'yas-indent-line ) nil ))
68+
6169;;;### autoload
6270(eval-after-load 'yasnippet
6371 '(yasnippet-snippets-initialize))
You can’t perform that action at this time.
0 commit comments