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
|
||||||
c-mode) 'flycheck-mode)
|
c-mode) 'flycheck-mode)
|
||||||
:config
|
:config
|
||||||
;; TODO: Implement this
|
|
||||||
(add-unreal-buffer! "^\\*Flycheck.*\\*$")
|
(add-unreal-buffer! "^\\*Flycheck.*\\*$")
|
||||||
|
|
||||||
(bind! :map flycheck-error-list-mode-map
|
(bind! :map flycheck-error-list-mode-map
|
||||||
|
|
|
@ -20,12 +20,14 @@ enable multiple minor modes for the same regexp.")
|
||||||
"^\\*Backtrace\\*$"
|
"^\\*Backtrace\\*$"
|
||||||
"^\\*Warnings\\*$"
|
"^\\*Warnings\\*$"
|
||||||
"^\\*Compile-Log\\*$"
|
"^\\*Compile-Log\\*$"
|
||||||
|
"^\\*compilation\\*$"
|
||||||
"^\\*Ediff.*\\*$"
|
"^\\*Ediff.*\\*$"
|
||||||
"^\\*helm.*\\*$"
|
"^\\*helm.*\\*$"
|
||||||
"^\\*eval\\*$"
|
"^\\*eval\\*$"
|
||||||
"^\\*Shell Command Output\\*$"
|
"^\\*Shell Command Output\\*$"
|
||||||
"^\\*Async Shell Command\\*$"
|
"^\\*Async Shell Command\\*$"
|
||||||
"^\\*WoMan-Log\\*$"
|
"^\\*WoMan-Log\\*$"
|
||||||
|
"^\\*Completions\\*$"
|
||||||
help-mode
|
help-mode
|
||||||
image-mode
|
image-mode
|
||||||
dired-mode
|
dired-mode
|
||||||
|
@ -41,7 +43,7 @@ buffer to display.")
|
||||||
(defvar narf-ignore-buffers '("*Completions*" "*Compile-Log*" "*inferior-lisp*"
|
(defvar narf-ignore-buffers '("*Completions*" "*Compile-Log*" "*inferior-lisp*"
|
||||||
"*Fuzzy Completions*" "*Apropos*" "*Help*" "*cvs*"
|
"*Fuzzy Completions*" "*Apropos*" "*Help*" "*cvs*"
|
||||||
"*Buffer List*" "*Ibuffer*" "*esh command on file*"
|
"*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'")
|
"List of buffer names to ignore when using `winner-undo', or `winner-redo'")
|
||||||
|
|
||||||
(defvar narf-cleanup-processes-alist '(("pry" . ruby-mode)
|
(defvar narf-cleanup-processes-alist '(("pry" . ruby-mode)
|
||||||
|
|
|
@ -156,7 +156,7 @@
|
||||||
(require 'recentf)
|
(require 'recentf)
|
||||||
(setq recentf-save-file (! (concat narf-temp-dir "recentf"))
|
(setq recentf-save-file (! (concat narf-temp-dir "recentf"))
|
||||||
recentf-exclude '("/tmp/" "/ssh:" "\\.?ido\\.last$" "\\.revive$" "/TAGS$"
|
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$")
|
"/company-statistics-cache.el$")
|
||||||
recentf-max-menu-items 0
|
recentf-max-menu-items 0
|
||||||
recentf-max-saved-items 250
|
recentf-max-saved-items 250
|
||||||
|
|
4
init.el
4
init.el
|
@ -72,8 +72,8 @@
|
||||||
module-cc ; c/c++/obj-c madness
|
module-cc ; c/c++/obj-c madness
|
||||||
module-csharp ; unity, mono and xamarin
|
module-csharp ; unity, mono and xamarin
|
||||||
module-data ; dbs 'n data formats
|
module-data ; dbs 'n data formats
|
||||||
module-eshell ; eshell
|
module-eshell ; eshell (on windows)
|
||||||
module-go
|
module-go ; a hipster dialect
|
||||||
module-java ; the poster child for carpal tunnel syndome
|
module-java ; the poster child for carpal tunnel syndome
|
||||||
module-js ; alert("not java, javascript!")
|
module-js ; alert("not java, javascript!")
|
||||||
module-elisp ;
|
module-elisp ;
|
||||||
|
|
|
@ -23,20 +23,6 @@
|
||||||
;; DEL mapping interferes with smartparens and my custom DEL binding
|
;; DEL mapping interferes with smartparens and my custom DEL binding
|
||||||
(define-key c-mode-map (kbd "DEL") nil))
|
(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
|
;;;###autoload
|
||||||
(defun narf|init-c++-C11-highlights ()
|
(defun narf|init-c++-C11-highlights ()
|
||||||
;; We could place some regexes into `c-mode-common-hook', but
|
;; We could place some regexes into `c-mode-common-hook', but
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue