General clean up
This commit is contained in:
parent
d2f680d405
commit
83ad33d6fe
5 changed files with 6 additions and 19 deletions
|
@ -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
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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
|
||||
|
|
4
init.el
4
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 ;
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue