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 1
1
(require 'yasnippet )
2
2
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 35
35
" \n " ))))
36
36
37
37
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.
58
58
See Info node `(elisp)Customization Types'."
59
59
:group 'yasnippet )
60
60
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
+
61
69
;;;### autoload
62
70
(eval-after-load 'yasnippet
63
71
'(yasnippet-snippets-initialize))
You can’t perform that action at this time.
0 commit comments