summaryrefslogtreecommitdiff
path: root/lisp
diff options
context:
space:
mode:
authorJakob L. Kreuze2020-07-23 20:23:25 -0400
committerJakob L. Kreuze2020-07-23 20:23:43 -0400
commit9be2d246e1f95b374e138ad9ad347e2b537d21ee (patch)
tree6a518a8f5dfdeffb85633f7f0efc093f76f1f33a /lisp
parentdeccbd18160254dbab4d23da7c9f0ca355f913e0 (diff)
Deal with uninteresting byte-compilation errors.
Diffstat (limited to 'lisp')
-rw-r--r--lisp/irc.el4
-rw-r--r--lisp/jakob.el9
-rw-r--r--lisp/programming.el6
-rw-r--r--lisp/shell.el6
-rw-r--r--lisp/window-manager.el2
5 files changed, 14 insertions, 13 deletions
diff --git a/lisp/irc.el b/lisp/irc.el
index 670ceae..5a093f8 100644
--- a/lisp/irc.el
+++ b/lisp/irc.el
@@ -205,7 +205,9 @@ change."
(remove-hook 'window-configuration-change-hook 'erc-bar-update-overlay)
(add-hook 'window-configuration-change-hook 'erc-bar-update-overlay))
- (add-hook 'erc-send-completed-hook (lambda (str) (erc-bar-update-overlay))))
+ (add-hook 'erc-send-completed-hook (lambda (str)
+ (ignore str)
+ (erc-bar-update-overlay))))
;; Display the bar as a highlight on the most recently unread message.
diff --git a/lisp/jakob.el b/lisp/jakob.el
index c226f8a..9082be2 100644
--- a/lisp/jakob.el
+++ b/lisp/jakob.el
@@ -90,8 +90,7 @@ very important questions."
(interactive)
(save-excursion
(let* ((begin (region-beginning))
- (end (region-end))
- (region (buffer-substring begin end)))
+ (end (region-end)))
(goto-char begin)
(while (<= (point) end)
(forward-sexp)
@@ -103,8 +102,7 @@ very important questions."
(interactive)
(save-excursion
(let* ((begin (region-beginning))
- (end (region-end))
- (region (buffer-substring begin end)))
+ (end (region-end)))
(goto-char end)
(while (> (point) begin)
(forward-sexp -1)
@@ -116,8 +114,7 @@ very important questions."
(interactive)
(save-excursion
(let* ((begin (region-beginning))
- (end (region-end))
- (region (buffer-substring begin end)))
+ (end (region-end)))
(goto-char begin)
(while (< (point) end)
(forward-sexp)
diff --git a/lisp/programming.el b/lisp/programming.el
index 641a270..83bed87 100644
--- a/lisp/programming.el
+++ b/lisp/programming.el
@@ -60,7 +60,8 @@
:config
(add-hook 'compilation-finish-functions
(lambda (buf strg)
- (let ((win (get-buffer-window buf 'visible)))
+ (ignore strg)
+ (let ((win (get-buffer-window buf 'visible)))
(when win (delete-window win))))))
(use-package flycheck)
@@ -142,8 +143,7 @@
(use-package lsp-mode
:init
- (setq lsp-prefer-flymake nil
- lsp-enable-xref t)
+ (setq lsp-enable-xref t)
;; Filesystem hygene.
:init
diff --git a/lisp/shell.el b/lisp/shell.el
index 0449be2..fa1ee72 100644
--- a/lisp/shell.el
+++ b/lisp/shell.el
@@ -113,7 +113,7 @@
(comint-send-input) ; and send it.
(save-excursion
;; Then, we copy the input to the previous line,
- (previous-line)
+ (forward-line -1)
(end-of-visual-line)
(yank)
;; And finish by cleaning the kill ring.
@@ -178,13 +178,15 @@
"Called when the shell process is stopped.
Kills the buffer when the shell program quits."
+ (ignore event)
(comint-write-input-ring)
(let ((buf (process-buffer process)))
(when (buffer-live-p buf)
(with-current-buffer buf (kill-buffer)))))
(defun add-shell-sentinel (&rest args)
+ (ignore args)
(set-process-sentinel (get-buffer-process (current-buffer))
- #'shell-test-sentinel))
+ #'shell-kill-buffer-on-quit))
(add-hook 'shell-mode-hook #'add-shell-sentinel)
diff --git a/lisp/window-manager.el b/lisp/window-manager.el
index f7cf65a..139943e 100644
--- a/lisp/window-manager.el
+++ b/lisp/window-manager.el
@@ -170,7 +170,7 @@
(use-package epa
:straight nil
:config
- (setq epa-pinentry-mode 'loopback))
+ (setq epg-pinentry-mode 'loopback))
;; And on that note, allow 'gpg-agent' to query Emacs for my passphrase.

© 2015 - 2026 Jakob L. Kreuze