lambdas: let emacs byte-compile

This commit is contained in:
Grigory Shipunov 2023-05-09 15:14:30 +02:00
parent 0b830fb6ef
commit 03e825dd36
Signed by: 0xa
GPG key ID: 91FA5E5BF9AA901C
3 changed files with 5 additions and 5 deletions

View file

@ -25,7 +25,7 @@
(global-display-line-numbers-mode)
(setq-default indicate-empty-lines t)
(setq-default show-trailing-whitespace t)
(add-hook 'prog-mode-hook '(lambda () (whitespace-mode t)))
(add-hook 'prog-mode-hook #'(lambda () (whitespace-mode t)))
;;; personal framework bits
;; my personal keymap

View file

@ -10,9 +10,9 @@
;; TODO Proper graphical setup
(add-hook 'after-make-frame-functions
(lambda (frame)
(toggle-scroll-bar -1)
(tool-bar-mode -1)))
#'(lambda (frame)
(toggle-scroll-bar -1)
(tool-bar-mode -1)))
;;; improvements to compilation buffer
(require 'compile)

View file

@ -1,5 +1,5 @@
;; Macro to simplify setting mode-local vars
(defmacro oxa/hook (hook-name &rest body)
`(add-hook ',hook-name '(lambda nil ,@body)))
`(add-hook ',hook-name #'(lambda nil ,@body)))
(provide 'oxa/utils)