From 8685a018c31c7a59e7ac54e5499ccd6907808d16 Mon Sep 17 00:00:00 2001 From: Peng Li Date: Sun, 17 Jul 2016 04:34:09 +0800 Subject: [PATCH] emacs - compilation --- emacs.d/config.org | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/emacs.d/config.org b/emacs.d/config.org index df7137a..6751821 100644 --- a/emacs.d/config.org +++ b/emacs.d/config.org @@ -903,6 +903,7 @@ use the prefix =M-s= for searching in buffers ;; ("\M-w" . save-buffer) ("e" . revert-buffer) ("s" . isearch-forward-regexp) + ("M-s" . isearch-forward-regexp) ("r" . isearch-backward-regexp) ("." . isearch-forward-symbol-at-point) ("o" . occur) @@ -1934,7 +1935,10 @@ Set the environments vairables in compilation mode (use-package compile :commands compile :config - (setq compilation-environment (cons "LC_ALL=C" compilation-environment))) + (setq compilation-environment (cons "LC_ALL=C" compilation-environment)) + (setq compilation-auto-jump-to-first-error t) + (setq compilation-auto-jump-to-next t) + (setq compilation-scroll-output 'first-error)) ;; super-r to compile (with-eval-after-load "compile" @@ -1952,9 +1956,7 @@ Set the environments vairables in compilation mode #+END_SRC *** C++ Auto Insert - #+BEGIN_SRC emacs-lisp :tangle yes :results silent - (eval-after-load 'autoinsert '(define-auto-insert '("\\.cpp\\'" . "C++ skeleton") '( @@ -1993,7 +1995,6 @@ Set the environments vairables in compilation mode "return 1;\n" "}" > \n ))) - #+END_SRC *** Perl Auto Insert -- 2.11.0