Replace uses of customize-set-variable with setopt
This commit is contained in:
parent
4369b81125
commit
2eb76021bf
|
@ -6,9 +6,9 @@
|
||||||
#+property: header-args:emacs-lisp :tangle yes :mkdirp yes :results output silent
|
#+property: header-args:emacs-lisp :tangle yes :mkdirp yes :results output silent
|
||||||
* Calendar
|
* Calendar
|
||||||
#+begin_src emacs-lisp
|
#+begin_src emacs-lisp
|
||||||
(customize-set-variable 'calendar-date-style 'iso)
|
(setopt calendar-date-style 'iso
|
||||||
(customize-set-variable 'calendar-mark-holidays-flag t)
|
calendar-mark-holidays-flag t
|
||||||
(customize-set-variable 'calendar-mark-diary-entries-flag nil)
|
calendar-mark-diary-entries-flag nil)
|
||||||
#+end_src
|
#+end_src
|
||||||
* Appointment reminders
|
* Appointment reminders
|
||||||
#+begin_src emacs-lisp
|
#+begin_src emacs-lisp
|
||||||
|
|
|
@ -49,17 +49,16 @@
|
||||||
(global-auto-revert-mode +1)
|
(global-auto-revert-mode +1)
|
||||||
(delete-selection-mode +1)
|
(delete-selection-mode +1)
|
||||||
|
|
||||||
|
(setopt
|
||||||
;; No tabs
|
;; No tabs
|
||||||
(customize-set-variable 'indent-tabs-mode nil)
|
indent-tabs-mode nil
|
||||||
|
|
||||||
;; Only display async output buffer when there's something to show
|
;; Only display async output buffer when there's something to show
|
||||||
(customize-set-variable 'async-shell-command-display-buffer nil)
|
async-shell-command-display-buffer nil
|
||||||
|
;; Scroll compilation buffer output
|
||||||
|
compilation-scroll-output t)
|
||||||
|
|
||||||
;; Make shebang (#!) file executable when saved
|
;; Make shebang (#!) file executable when saved
|
||||||
(add-hook 'after-save-hook #'executable-make-buffer-file-executable-if-script-p)
|
(add-hook 'after-save-hook #'executable-make-buffer-file-executable-if-script-p)
|
||||||
|
|
||||||
;; Scroll compilation buffer output
|
|
||||||
(customize-set-variable 'compilation-scroll-output t)
|
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
* Auto-save file settings
|
* Auto-save file settings
|
||||||
|
|
|
@ -20,7 +20,7 @@
|
||||||
* Grand Unified Debugger
|
* Grand Unified Debugger
|
||||||
#+begin_src emacs-lisp
|
#+begin_src emacs-lisp
|
||||||
(with-eval-after-load 'gud
|
(with-eval-after-load 'gud
|
||||||
(customize-set-variable 'gdb-many-windows t))
|
(setopt gdb-many-windows t))
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
* Tree-sitter
|
* Tree-sitter
|
||||||
|
@ -144,14 +144,10 @@ Set treesit to fontify all elements, default was 3 (out of 4)
|
||||||
:ensure t
|
:ensure t
|
||||||
:diminish
|
:diminish
|
||||||
:defer
|
:defer
|
||||||
:after flymake)
|
:after flymake
|
||||||
#+end_src
|
:custom
|
||||||
|
;; Extra mypy config
|
||||||
*** mypy
|
(flymake-collection-mypy-args '("--ignore-missing-imports"
|
||||||
#+begin_src emacs-lisp
|
|
||||||
(with-eval-after-load 'flymake-collection
|
|
||||||
(customize-set-variable 'flymake-collection-mypy-args
|
|
||||||
'("--ignore-missing-imports"
|
|
||||||
"--follow-imports=skip"
|
"--follow-imports=skip"
|
||||||
"--check-untyped-defs"
|
"--check-untyped-defs"
|
||||||
"--warn-unreachable"
|
"--warn-unreachable"
|
||||||
|
|
2
init.el
2
init.el
|
@ -6,7 +6,7 @@
|
||||||
;;; Code:
|
;;; Code:
|
||||||
|
|
||||||
;; Stop popups for warning messages, keep in log buffer
|
;; Stop popups for warning messages, keep in log buffer
|
||||||
(customize-set-variable 'warning-minimum-level :error)
|
(setopt warning-minimum-level :error)
|
||||||
|
|
||||||
(defvar my/config-files () "List of literate config files to load.")
|
(defvar my/config-files () "List of literate config files to load.")
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue