diff options
Diffstat (limited to 'lisp')
| -rw-r--r-- | lisp/irc.el | 4 | ||||
| -rw-r--r-- | lisp/jakob.el | 9 | ||||
| -rw-r--r-- | lisp/programming.el | 6 | ||||
| -rw-r--r-- | lisp/shell.el | 6 | ||||
| -rw-r--r-- | lisp/window-manager.el | 2 |
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. |