From 83ad33d6fe474a954471bc83d9f3f9f1da532b3d Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Fri, 17 Jul 2015 12:09:35 +0200 Subject: [PATCH] General clean up --- core/core-flycheck.el | 1 - core/core-vars.el | 4 +++- core/core.el | 2 +- init.el | 4 ++-- modules/lib/defuns-cc.el | 14 -------------- 5 files changed, 6 insertions(+), 19 deletions(-) diff --git a/core/core-flycheck.el b/core/core-flycheck.el index 7c51d4a26..9e5c9015d 100644 --- a/core/core-flycheck.el +++ b/core/core-flycheck.el @@ -19,7 +19,6 @@ c++-mode c-mode) 'flycheck-mode) :config - ;; TODO: Implement this (add-unreal-buffer! "^\\*Flycheck.*\\*$") (bind! :map flycheck-error-list-mode-map diff --git a/core/core-vars.el b/core/core-vars.el index 3a6ecd095..b2693243d 100644 --- a/core/core-vars.el +++ b/core/core-vars.el @@ -20,12 +20,14 @@ enable multiple minor modes for the same regexp.") "^\\*Backtrace\\*$" "^\\*Warnings\\*$" "^\\*Compile-Log\\*$" + "^\\*compilation\\*$" "^\\*Ediff.*\\*$" "^\\*helm.*\\*$" "^\\*eval\\*$" "^\\*Shell Command Output\\*$" "^\\*Async Shell Command\\*$" "^\\*WoMan-Log\\*$" + "^\\*Completions\\*$" help-mode image-mode dired-mode @@ -41,7 +43,7 @@ buffer to display.") (defvar narf-ignore-buffers '("*Completions*" "*Compile-Log*" "*inferior-lisp*" "*Fuzzy Completions*" "*Apropos*" "*Help*" "*cvs*" "*Buffer List*" "*Ibuffer*" "*esh command on file*" - "*helm*" "*WoMan-Log*") + "*helm*" "*WoMan-Log*" "*compilation*") "List of buffer names to ignore when using `winner-undo', or `winner-redo'") (defvar narf-cleanup-processes-alist '(("pry" . ruby-mode) diff --git a/core/core.el b/core/core.el index dd5ccf651..fbc069be5 100644 --- a/core/core.el +++ b/core/core.el @@ -156,7 +156,7 @@ (require 'recentf) (setq recentf-save-file (! (concat narf-temp-dir "recentf")) recentf-exclude '("/tmp/" "/ssh:" "\\.?ido\\.last$" "\\.revive$" "/TAGS$" - "/\\.cache/.+" "emacs\\.d/workgroups/.+$" ".emacs.workgroup" + "emacs\\.d/private/cache/.+" "emacs\\.d/workgroups/.+$" "wg-default" "/company-statistics-cache.el$") recentf-max-menu-items 0 recentf-max-saved-items 250 diff --git a/init.el b/init.el index c40f41f13..b0207c9fc 100644 --- a/init.el +++ b/init.el @@ -72,8 +72,8 @@ module-cc ; c/c++/obj-c madness module-csharp ; unity, mono and xamarin module-data ; dbs 'n data formats - module-eshell ; eshell - module-go + module-eshell ; eshell (on windows) + module-go ; a hipster dialect module-java ; the poster child for carpal tunnel syndome module-js ; alert("not java, javascript!") module-elisp ; diff --git a/modules/lib/defuns-cc.el b/modules/lib/defuns-cc.el index a29ce71cd..94701809d 100644 --- a/modules/lib/defuns-cc.el +++ b/modules/lib/defuns-cc.el @@ -23,20 +23,6 @@ ;; DEL mapping interferes with smartparens and my custom DEL binding (define-key c-mode-map (kbd "DEL") nil)) -;;;###autoload -(defun narf*c-lineup-arglist () - "Improve indentation of continued C++11 lambda function opened as argument." - (setq ad-return-value - (if (and (equal major-mode 'c++-mode) - (ignore-errors - (save-excursion - (goto-char (c-langelem-pos langelem)) - ;; Detect "[...](" or "[...]{". preceded by "," or "(", - ;; and with unclosed brace. - (looking-at ".*[(,][ \t]*\\[[^]]*\\][ \t]*[({][^}]*$")))) - 0 ; no additional indent - ad-do-it))) - ;;;###autoload (defun narf|init-c++-C11-highlights () ;; We could place some regexes into `c-mode-common-hook', but