From d7458c28f39e824c95fd6f75c8d26746fc71b226 Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Sat, 18 Mar 2017 21:17:37 +0100 Subject: set open-paren-in-column-0-is-defun-start to nil Set open-paren-in-column-0-is-defun-start to nil in rust-mode. This setting is a performance hack in Emacs, at the expense of correctness in some cases. However, due to the syntax-ppss cache, I doubt whether this hack is needed for Rust code. Fixes #107 --- rust-mode.el | 1 + 1 file changed, 1 insertion(+) (limited to 'rust-mode.el') diff --git a/rust-mode.el b/rust-mode.el index dfe3e9a..4fadd81 100644 --- a/rust-mode.el +++ b/rust-mode.el @@ -1456,6 +1456,7 @@ This is written mainly to be used as `end-of-defun-function' for Rust." (setq-local comment-start "// ") (setq-local comment-end "") (setq-local indent-tabs-mode nil) + (setq-local open-paren-in-column-0-is-defun-start nil) ;; Auto indent on } (setq-local -- cgit v1.2.3