|
@@ -23,8 +23,7 @@ |
|
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
|
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
|
|
;; Some macros for internals |
|
|
;; Some macros for internals |
|
|
|
|
|
|
|
|
;; TODO: Rename to eval-after-init |
|
|
|
|
|
(defmacro call-after-init (&rest body) |
|
|
|
|
|
|
|
|
(defmacro eval-after-init (&rest body) |
|
|
"If `after-init-hook' has been run, run BODY immediately. |
|
|
"If `after-init-hook' has been run, run BODY immediately. |
|
|
Otherwize hook it." |
|
|
Otherwize hook it." |
|
|
(declare (indent 0) (debug t)) |
|
|
(declare (indent 0) (debug t)) |
|
@@ -233,7 +232,7 @@ found, otherwise returns nil." |
|
|
(and (fboundp 'set-scroll-bar-mode) |
|
|
(and (fboundp 'set-scroll-bar-mode) |
|
|
(set-scroll-bar-mode nil)) |
|
|
(set-scroll-bar-mode nil)) |
|
|
|
|
|
|
|
|
(call-after-init |
|
|
|
|
|
|
|
|
(eval-after-init |
|
|
(message "%s %s" invocation-name emacs-version) |
|
|
(message "%s %s" invocation-name emacs-version) |
|
|
(message "Invocation directory: %s" default-directory) |
|
|
(message "Invocation directory: %s" default-directory) |
|
|
(message "%s was taken to initialize emacs." (emacs-init-time)) |
|
|
(message "%s was taken to initialize emacs." (emacs-init-time)) |
|
@@ -263,7 +262,7 @@ found, otherwise returns nil." |
|
|
;; (comint-show-maximum-output) |
|
|
;; (comint-show-maximum-output) |
|
|
|
|
|
|
|
|
;; kill scratch |
|
|
;; kill scratch |
|
|
(call-after-init |
|
|
|
|
|
|
|
|
(eval-after-init |
|
|
(let ((buf (get-buffer "*scratch*"))) |
|
|
(let ((buf (get-buffer "*scratch*"))) |
|
|
(when buf |
|
|
(when buf |
|
|
(kill-buffer buf)))) |
|
|
(kill-buffer buf)))) |
|
@@ -521,7 +520,7 @@ found, otherwise returns nil." |
|
|
|
|
|
|
|
|
(when (safe-require-or-eval 'diminish) |
|
|
(when (safe-require-or-eval 'diminish) |
|
|
;; FIXME: Eval after enabling mode |
|
|
;; FIXME: Eval after enabling mode |
|
|
(call-after-init |
|
|
|
|
|
|
|
|
(eval-after-init |
|
|
(diminish 'recently-mode) |
|
|
(diminish 'recently-mode) |
|
|
(diminish 'editorconfig-mode) |
|
|
(diminish 'editorconfig-mode) |
|
|
(diminish 'auto-highlight-symbol-mode) |
|
|
(diminish 'auto-highlight-symbol-mode) |
|
@@ -1355,7 +1354,7 @@ found, otherwise returns nil." |
|
|
;; TODO: Any way to disable auto check? |
|
|
;; TODO: Any way to disable auto check? |
|
|
;; Update flycheck-hooks-alist? |
|
|
;; Update flycheck-hooks-alist? |
|
|
(when (safe-require-or-eval 'flycheck) |
|
|
(when (safe-require-or-eval 'flycheck) |
|
|
(call-after-init (global-flycheck-mode))) |
|
|
|
|
|
|
|
|
(eval-after-init (global-flycheck-mode))) |
|
|
;; (set-variable 'flycheck-display-errors-delay 2.0) |
|
|
;; (set-variable 'flycheck-display-errors-delay 2.0) |
|
|
;; (fset 'flycheck-display-error-at-point-soon 'ignore) |
|
|
;; (fset 'flycheck-display-error-at-point-soon 'ignore) |
|
|
|
|
|
|
|
@@ -1492,7 +1491,7 @@ found, otherwise returns nil." |
|
|
;; (add-to-list 'load-path |
|
|
;; (add-to-list 'load-path |
|
|
;; (expand-file-name (concat user-emacs-directory "/cedet"))) |
|
|
;; (expand-file-name (concat user-emacs-directory "/cedet"))) |
|
|
;; (safe-require-or-eval 'cedet-devel-load) |
|
|
;; (safe-require-or-eval 'cedet-devel-load) |
|
|
;; (call-after-init (activate-malabar-mode))) |
|
|
|
|
|
|
|
|
;; (eval-after-init (activate-malabar-mode))) |
|
|
|
|
|
|
|
|
(with-eval-after-load 'make-mode |
|
|
(with-eval-after-load 'make-mode |
|
|
(defvar makefile-mode-map (make-sparse-keymap)) |
|
|
(defvar makefile-mode-map (make-sparse-keymap)) |
|
|