mirror of
https://github.com/protesilaos/dotfiles.git
synced 2026-09-10 07:16:20 -04:00
emacs: make some trivial formatting changes
This commit is contained in:
parent
2683f267c6
commit
faf2a3cf35
|
|
@ -165,11 +165,11 @@ Meant to be added to `prog-mode-hook'."
|
|||
(flymake-mode 1)))
|
||||
|
||||
(defun prot/flymake-mode-in-my-projects ()
|
||||
(when-let* ((file (buffer-file-name))
|
||||
((string-prefix-p prot/flymake-mode-projects-path
|
||||
(expand-file-name file)))
|
||||
((not (file-directory-p file)))
|
||||
((file-regular-p file)))
|
||||
(when-let ((file (buffer-file-name))
|
||||
((string-prefix-p prot/flymake-mode-projects-path
|
||||
(expand-file-name file)))
|
||||
((not (file-directory-p file)))
|
||||
((file-regular-p file)))
|
||||
(add-hook 'find-file-hook #'prot/flymake-mode-lexical-binding nil t)))
|
||||
|
||||
(add-hook 'emacs-lisp-mode-hook #'prot/flymake-mode-in-my-projects)
|
||||
|
|
@ -193,7 +193,7 @@ Meant to be added to `prog-mode-hook'."
|
|||
;;;; `outline' (`outline-mode' and `outline-minor-mode')
|
||||
(:delay 10)
|
||||
(setq outline-minor-mode-highlight nil) ; emacs28
|
||||
(setq outline-minor-mode-cycle t) ; emacs28
|
||||
(setq outline-minor-mode-cycle t) ; emacs28
|
||||
(setq outline-minor-mode-use-buttons nil) ; emacs29---bless you for the nil option!
|
||||
(setq outline-minor-mode-use-margins nil) ; as above
|
||||
(define-key global-map (kbd "<f10>") #'outline-minor-mode)
|
||||
|
|
|
|||
|
|
@ -7632,11 +7632,11 @@ commands. For the technicalities, read the man page ~sxhkd(1)~.
|
|||
(flymake-mode 1)))
|
||||
|
||||
(defun prot/flymake-mode-in-my-projects ()
|
||||
(when-let* ((file (buffer-file-name))
|
||||
((string-prefix-p prot/flymake-mode-projects-path
|
||||
(expand-file-name file)))
|
||||
((not (file-directory-p file)))
|
||||
((file-regular-p file)))
|
||||
(when-let ((file (buffer-file-name))
|
||||
((string-prefix-p prot/flymake-mode-projects-path
|
||||
(expand-file-name file)))
|
||||
((not (file-directory-p file)))
|
||||
((file-regular-p file)))
|
||||
(add-hook 'find-file-hook #'prot/flymake-mode-lexical-binding nil t)))
|
||||
|
||||
(add-hook 'emacs-lisp-mode-hook #'prot/flymake-mode-in-my-projects)
|
||||
|
|
@ -7667,7 +7667,7 @@ commands. For the technicalities, read the man page ~sxhkd(1)~.
|
|||
;;;; `outline' (`outline-mode' and `outline-minor-mode')
|
||||
(:delay 10)
|
||||
(setq outline-minor-mode-highlight nil) ; emacs28
|
||||
(setq outline-minor-mode-cycle t) ; emacs28
|
||||
(setq outline-minor-mode-cycle t) ; emacs28
|
||||
(setq outline-minor-mode-use-buttons nil) ; emacs29---bless you for the nil option!
|
||||
(setq outline-minor-mode-use-margins nil) ; as above
|
||||
(define-key global-map (kbd "<f10>") #'outline-minor-mode)
|
||||
|
|
|
|||
Loading…
Reference in a new issue