mirror of
https://github.com/doomemacs/doomemacs
synced 2025-09-16 15:56:52 -05:00
Minor refactor, reformat & comment revision
This commit is contained in:
@@ -92,9 +92,8 @@
|
||||
|
||||
;; Until sebastiencs/company-box#40 is merged
|
||||
(defun +company*box-frontend-even-if-single (command)
|
||||
(cond ((eq command 'hide)
|
||||
(company-box-hide))
|
||||
((equal company-candidates-length 0)
|
||||
(cond ((or (eq command 'hide)
|
||||
(equal company-candidates-length 0))
|
||||
(company-box-hide))
|
||||
((eq command 'update)
|
||||
(company-box-show))
|
||||
|
@@ -133,12 +133,12 @@ be negative.")
|
||||
(advice-add #'helm-ag-show-status-default-mode-line :override #'ignore)
|
||||
|
||||
;; TODO Find a better way
|
||||
(defun +helm*use-helpful (orig-fn &rest args)
|
||||
(defun +helm*use-helpful (orig-fn arg)
|
||||
(cl-letf (((symbol-function #'describe-function)
|
||||
(symbol-function #'helpful-callable))
|
||||
((symbol-function #'describe-variable)
|
||||
(symbol-function #'helpful-variable)))
|
||||
(apply orig-fn args)))
|
||||
(funcall orig-fn arg)))
|
||||
(advice-add #'helm-describe-variable :around #'+helm*use-helpful)
|
||||
(advice-add #'helm-describe-function :around #'+helm*use-helpful))
|
||||
|
||||
|
Reference in New Issue
Block a user