From: Mark Wooding Date: Wed, 3 Jun 2015 13:44:55 +0000 (+0100) Subject: el/dot-emacs.el (mdw-fontify-rust): Also indent on `{'. X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/profile/commitdiff_plain/d2f85967f21282d9fd873a23b11ffd205491cbad?ds=inline;hp=--cc el/dot-emacs.el (mdw-fontify-rust): Also indent on `{'. I haven't decided yet where to put the open brace of a Rust function definition. --- d2f85967f21282d9fd873a23b11ffd205491cbad diff --git a/el/dot-emacs.el b/el/dot-emacs.el index f8af576..3a461d6 100644 --- a/el/dot-emacs.el +++ b/el/dot-emacs.el @@ -2051,6 +2051,7 @@ (defun mdw-fontify-rust () '(0 mdw-punct-face))))) ;; Hack key bindings. + (local-set-key [?{] 'mdw-self-insert-and-indent) (local-set-key [?}] 'mdw-self-insert-and-indent) ;; Final hacking.