Skip to content

Commit

Permalink
fix byte-compile remarks part 107
Browse files Browse the repository at this point in the history
  • Loading branch information
bard_simpson committed Jun 17, 2024
1 parent 70ad3c9 commit c1e19d8
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 10 deletions.
4 changes: 3 additions & 1 deletion lisp/editing/my-eldoc.el
Original file line number Diff line number Diff line change
Expand Up @@ -88,9 +88,11 @@
:when (display-graphic-p)
:commands (eldoc-box--eldoc-message-function
eldoc-box--eldoc-display-function)
:defun eldoc-box--get-frame
:bind (("C-h C-k" . eldoc-box-quit-frame)
("C-h C-v" . my-scroll-eldoc-box-frame))
:defvar (eldoc-box--buffer
eldoc-box-clear-with-C-g
eldoc-box-max-pixel-width)
:custom (;; (eldoc-box-fringe-use-same-bg . nil)
(eldoc-box-cleanup-interval . 30)
(eldoc-box-clear-with-C-g . t))
Expand Down
13 changes: 9 additions & 4 deletions lisp/editing/my-yas.el
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,15 @@

(leaf yasnippet
:ensure (yasnippet :repo "joaotavora/yasnippet")
:defun (yas-reload-all
yas--table-hash
:defun (yas--fetch
yas--filter-templates-by-condition
yas--namehash-templates-alist)
yas--get-snippet-tables
yas--namehash-templates-alist
yas--table-hash
yas--template-content
yas-active-keys
yas-expand
yas-reload-all)
:bind ("C-=" . yas-insert-snippet)
;; don't use `yas-global-mode', prefer local minor modes
;; :global-minor-mode yas-global-mode
Expand All @@ -41,7 +46,7 @@

;; a completion for snippets with `cape' (capf)
(leaf cape
:defun cape--table-with-properties cape--bounds cape-interactive
:defun cape--properties-table cape--bounds cape-interactive
:after cape yasnippet corfu
:defun my-yas-capf
:config
Expand Down
1 change: 1 addition & 0 deletions lisp/env/my-git.el
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
:host github)
:bind (:magit-mode-map
("D" . magit-file-delete))
:defvar project-switch-commands
:custom ((magit-refresh-status-buffer . t)
(magit-disabled-section-inserters
. '(magit-insert-diff-filter-header
Expand Down
5 changes: 3 additions & 2 deletions lisp/env/my-persp.el
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,12 @@
(require 'dash)
(require 'my-leaf)

(defvar persp-key-map)
(leaf persp-mode
:ensure t
:defun persp-mode persp-set-keymap-prefix
:config (persp-mode +1)
;; change prefix from the default "C-c p" to "C-c ,"
:defvar persp-mode-map
:defvar persp-mode-map persp-key-map persp-keymap-prefix
:custom `((persp-keymap-prefix . ,(kbd "C-c ,"))
;; if `persp-auto-resume-time' <= 0, then `persp-mode' don't load all auto-saved
;; perspectives at startup, if you need in them, do `persp-load-state-from-file'
Expand Down Expand Up @@ -51,6 +50,7 @@ has a number 1, not 0"
(cons 'progn)
eval))

(defvar persp-key-map)
(with-eval-after-load 'persp-mode
(define-key mode-specific-map "," persp-key-map))

Expand All @@ -60,6 +60,7 @@ has a number 1, not 0"
consult--customize-put
my-persp-buffer-names
persp-buffer-list-restricted)
:defvar consult-buffer-sources
:config
(consult--customize-put '(consult--source-buffer) :default nil)
(consult--customize-put '(consult--source-buffer) :hidden nil)
Expand Down
6 changes: 3 additions & 3 deletions lisp/env/my-run-command.el
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,9 @@
(define-key compilation-mode-map "t" #'my-compilation-toggle-hide-details))


(defvar-local my-compilation-hide-details-p nil
"Variable is non-nil if details of `compile' buffer was hiden.")

(defun my-compilation-toggle-hide-details ()
"Hide or show details inside of `compile' buffer."
(interactive)
Expand All @@ -61,9 +64,6 @@
(my-compilation-hide-details))
(setq-local my-compilation-hide-details-p (not my-compilation-hide-details-p)))

(defvar-local my-compilation-hide-details-p nil
"Variable is non-nil if details of `compile' buffer was hiden.")

(defun my-compilation-hide-details ()
"Hide details like time at compile start inside `compile' buffer."
(interactive)
Expand Down

0 comments on commit c1e19d8

Please sign in to comment.