Minor refactors & comment revision
This commit is contained in:
parent
c8cfa31a1e
commit
996188250b
9 changed files with 18 additions and 28 deletions
20
core/core.el
20
core/core.el
|
@ -247,8 +247,8 @@ users).")
|
||||||
;; Don't ping things that look like domain names.
|
;; Don't ping things that look like domain names.
|
||||||
(setq ffap-machine-p-known 'reject)
|
(setq ffap-machine-p-known 'reject)
|
||||||
|
|
||||||
;; Performance on Windows is considerably worse than elsewhere. We'll need
|
;; Performance on Windows is considerably worse than elsewhere, especially if
|
||||||
;; everything we can get.
|
;; WSL is involved. We'll need everything we can get.
|
||||||
(when IS-WINDOWS
|
(when IS-WINDOWS
|
||||||
;; Reduce the workload when doing file IO
|
;; Reduce the workload when doing file IO
|
||||||
(setq w32-get-true-file-attributes nil)
|
(setq w32-get-true-file-attributes nil)
|
||||||
|
@ -258,13 +258,13 @@ users).")
|
||||||
;; been determined.
|
;; been determined.
|
||||||
(setq inhibit-compacting-font-caches t))
|
(setq inhibit-compacting-font-caches t))
|
||||||
|
|
||||||
;; Remove command line options that aren't relevant to our current OS; that
|
;; Remove command line options that aren't relevant to our current OS; means
|
||||||
;; means less to process at startup.
|
;; slightly less to process at startup.
|
||||||
(unless IS-MAC (setq command-line-ns-option-alist nil))
|
(unless IS-MAC (setq command-line-ns-option-alist nil))
|
||||||
(unless IS-LINUX (setq command-line-x-option-alist nil))
|
(unless IS-LINUX (setq command-line-x-option-alist nil))
|
||||||
|
|
||||||
;; Adopt a sneaky garbage collection strategy of waiting until idle time to
|
;; Adopt a sneaky garbage collection strategy of waiting until idle time to
|
||||||
;; collect and staving off the collector while the user is working.
|
;; collect; staving off the collector while the user is working.
|
||||||
(when doom-interactive-mode
|
(when doom-interactive-mode
|
||||||
(add-transient-hook! 'pre-command-hook (gcmh-mode +1))
|
(add-transient-hook! 'pre-command-hook (gcmh-mode +1))
|
||||||
(with-eval-after-load 'gcmh
|
(with-eval-after-load 'gcmh
|
||||||
|
@ -377,9 +377,7 @@ If this is a daemon session, load them all immediately instead."
|
||||||
;;; Bootstrap helpers
|
;;; Bootstrap helpers
|
||||||
|
|
||||||
(defun doom-try-run-hook (hook)
|
(defun doom-try-run-hook (hook)
|
||||||
"Run HOOK (a hook function), but handle errors better, to make debugging
|
"Run HOOK (a hook function) with better error handling.
|
||||||
issues easier.
|
|
||||||
|
|
||||||
Meant to be used with `run-hook-wrapped'."
|
Meant to be used with `run-hook-wrapped'."
|
||||||
(doom-log "Running doom hook: %s" hook)
|
(doom-log "Running doom hook: %s" hook)
|
||||||
(condition-case e
|
(condition-case e
|
||||||
|
@ -406,8 +404,7 @@ If RETURN-P, return the message as a string instead of displaying it."
|
||||||
"Tries to load FILE (an autoloads file).
|
"Tries to load FILE (an autoloads file).
|
||||||
Return t on success, nil otherwise (but logs a warning)."
|
Return t on success, nil otherwise (but logs a warning)."
|
||||||
(condition-case e
|
(condition-case e
|
||||||
(let (command-switch-alist)
|
(load (substring file 0 -3) noerror 'nomessage)
|
||||||
(load (substring file 0 -3) noerror 'nomessage))
|
|
||||||
((debug error)
|
((debug error)
|
||||||
(message "Autoload file error: %s -> %s" (file-name-nondirectory file) e)
|
(message "Autoload file error: %s -> %s" (file-name-nondirectory file) e)
|
||||||
nil)))
|
nil)))
|
||||||
|
@ -415,8 +412,7 @@ Return t on success, nil otherwise (but logs a warning)."
|
||||||
(defun doom-load-envvars-file (file &optional noerror)
|
(defun doom-load-envvars-file (file &optional noerror)
|
||||||
"Read and set envvars from FILE.
|
"Read and set envvars from FILE.
|
||||||
If NOERROR is non-nil, don't throw an error if the file doesn't exist or is
|
If NOERROR is non-nil, don't throw an error if the file doesn't exist or is
|
||||||
unreadable. Returns a list of VAR=VALUE strings for all environment variables
|
unreadable. Returns the names of envvars that were changed."
|
||||||
set."
|
|
||||||
(if (not (file-readable-p file))
|
(if (not (file-readable-p file))
|
||||||
(unless noerror
|
(unless noerror
|
||||||
(signal 'file-error (list "Couldn't read envvar file" file)))
|
(signal 'file-error (list "Couldn't read envvar file" file)))
|
||||||
|
|
2
init.el
2
init.el
|
@ -35,7 +35,7 @@
|
||||||
|
|
||||||
;; In noninteractive sessions, prioritize non-byte-compiled source files to
|
;; In noninteractive sessions, prioritize non-byte-compiled source files to
|
||||||
;; prevent the use of stale byte-code. Otherwise, it saves us a little IO time
|
;; prevent the use of stale byte-code. Otherwise, it saves us a little IO time
|
||||||
;; to skip the mtime checks on every *.elc file we load.
|
;; to skip the mtime checks on every *.elc file.
|
||||||
(setq load-prefer-newer noninteractive)
|
(setq load-prefer-newer noninteractive)
|
||||||
|
|
||||||
(let (file-name-handler-alist)
|
(let (file-name-handler-alist)
|
||||||
|
|
|
@ -49,4 +49,3 @@ https://mediatemple.net"
|
||||||
(set-popup-rules!
|
(set-popup-rules!
|
||||||
'(("^\\*doom-regex\\*$" :size 4 :quit nil)
|
'(("^\\*doom-regex\\*$" :size 4 :quit nil)
|
||||||
("^\\*doom-regex-groups" :side 'left :size 28 :select nil :quit nil)))
|
("^\\*doom-regex-groups" :side 'left :size 28 :select nil :quit nil)))
|
||||||
|
|
||||||
|
|
|
@ -125,6 +125,7 @@ be negative.")
|
||||||
|
|
||||||
|
|
||||||
(after! helm-rg
|
(after! helm-rg
|
||||||
|
(setq helm-rg-display-buffer-normal-method #'pop-to-buffer)
|
||||||
(set-popup-rule! "^helm-rg-" :ttl nil :select t :size 0.45)
|
(set-popup-rule! "^helm-rg-" :ttl nil :select t :size 0.45)
|
||||||
(map! :map helm-rg-map
|
(map! :map helm-rg-map
|
||||||
"C-c C-e" #'helm-rg--bounce)
|
"C-c C-e" #'helm-rg--bounce)
|
||||||
|
|
|
@ -128,6 +128,8 @@ evil-ex-specific constructs, so we disable it solely in evil-ex."
|
||||||
(use-package! ivy-rich
|
(use-package! ivy-rich
|
||||||
:after ivy
|
:after ivy
|
||||||
:config
|
:config
|
||||||
|
(setq ivy-rich-parse-remote-buffer nil)
|
||||||
|
|
||||||
(when (featurep! +icons)
|
(when (featurep! +icons)
|
||||||
(cl-pushnew '(+ivy-rich-buffer-icon)
|
(cl-pushnew '(+ivy-rich-buffer-icon)
|
||||||
(cadr (plist-get ivy-rich-display-transformers-list
|
(cadr (plist-get ivy-rich-display-transformers-list
|
||||||
|
|
|
@ -46,4 +46,3 @@ If the depth is 2, the first two directories are removed: net.lissner.game.")
|
||||||
:mode "\\.g\\(?:radle\\|roovy\\)$"
|
:mode "\\.g\\(?:radle\\|roovy\\)$"
|
||||||
:config
|
:config
|
||||||
(set-eval-handler! 'groovy-mode "groovy"))
|
(set-eval-handler! 'groovy-mode "groovy"))
|
||||||
|
|
||||||
|
|
|
@ -7,11 +7,11 @@ This module adds [[https://github.com/ethereum/solidity][Solidity]] support thro
|
||||||
+ Gas estimation (~C-c C-g~)
|
+ Gas estimation (~C-c C-g~)
|
||||||
|
|
||||||
* Table of Contents :TOC:
|
* Table of Contents :TOC:
|
||||||
- [[Module Flags][Module Flags]]
|
- [[#module-flags][Module Flags]]
|
||||||
- [[Prerequisites][Prerequisites]]
|
- [[#prerequisites][Prerequisites]]
|
||||||
- [[Solc][Solc]]
|
- [[#solc][Solc]]
|
||||||
- [[Solium][Solium]]
|
- [[#solium][Solium]]
|
||||||
- [[TODO][TODO]]
|
- [[#todo][TODO]]
|
||||||
|
|
||||||
* Module Flags
|
* Module Flags
|
||||||
This module provides no flags.
|
This module provides no flags.
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
;;; term/vterm/config.el -*- lexical-binding: t; -*-
|
;;; term/vterm/config.el -*- lexical-binding: t; -*-
|
||||||
|
|
||||||
(use-package! vterm
|
(use-package! vterm
|
||||||
:when (fboundp 'module-load)
|
:when module-file-suffix
|
||||||
:defer t
|
:defer t
|
||||||
:preface (setq vterm-install t)
|
:preface (setq vterm-install t)
|
||||||
:config
|
:config
|
||||||
|
|
|
@ -199,13 +199,6 @@ the command buffer."
|
||||||
(setq win (get-buffer-window (get-buffer (help-buffer)))))
|
(setq win (get-buffer-window (get-buffer (help-buffer)))))
|
||||||
(delete-window win))))
|
(delete-window win))))
|
||||||
|
|
||||||
;; `helm-ag'
|
|
||||||
(defadvice! +popup--helm-pop-to-buffer-a (orig-fn &rest args)
|
|
||||||
:around #'helm-ag--edit
|
|
||||||
(pop-to-buffer
|
|
||||||
(save-window-excursion (apply orig-fn args)
|
|
||||||
(current-buffer)))))
|
|
||||||
|
|
||||||
|
|
||||||
;;;###package Info
|
;;;###package Info
|
||||||
(defadvice! +popup--switch-to-info-window-a (&rest _)
|
(defadvice! +popup--switch-to-info-window-a (&rest _)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue