emacs: make some trivial formatting changes

This commit is contained in:
Protesilaos Stavrou 2024-01-07 07:37:47 +02:00
parent 2683f267c6
commit faf2a3cf35
No known key found for this signature in database
GPG key ID: 99BD6459CD5CA3EA
2 changed files with 12 additions and 12 deletions

View file

@ -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)

View file

@ -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)