Some random changes

This commit is contained in:
Alexander Rosenberg 2024-10-08 16:35:45 -07:00
parent e79ade8554
commit 7d01b9791f
Signed by: Zander671
GPG Key ID: 5FD0394ADBD72730
2 changed files with 19 additions and 30 deletions

View File

@ -160,3 +160,15 @@
;; " " quoted-name)))) ;; " " quoted-name))))
;; :config ;; :config
;; (add-to-list 'auto-mode-alist '("/\\.latexmkrc\\'" . perl-mode))) ;; (add-to-list 'auto-mode-alist '("/\\.latexmkrc\\'" . perl-mode)))
;; flyspell
;; (use-package flyspell
;; :hook
;; (((text-mode message-mode tex-mode) . flyspell-mode)
;; (prog-mode . flyspell-prog-mode))
;; :config
;; (setq ispell-program-name "hunspell"
;; flyspell-issue-message-flag nil
;; flyspell-issue-welcome-flag nil)
;; (define-key flyspell-mode-map (kbd "C-;") nil t)
;; (define-key flyspell-mode-map (kbd "C-,") nil t))

37
init.el
View File

@ -67,6 +67,7 @@
;; Increase responsiveness ;; Increase responsiveness
(setq gc-cons-threshold 80000000 (setq gc-cons-threshold 80000000
read-process-output-max (* 1024 1024)) ;; 1mb read-process-output-max (* 1024 1024)) ;; 1mb
(global-so-long-mode 1)
;; Terminal mouse support ;; Terminal mouse support
(xterm-mouse-mode 1) (xterm-mouse-mode 1)
@ -207,18 +208,6 @@ Interactively, force the recompile if called with a prefix."
icon-preference '(symbol text image emoji)) icon-preference '(symbol text image emoji))
(tab-bar-mode 1)) (tab-bar-mode 1))
;; flyspell
;; (use-package flyspell
;; :hook
;; (((text-mode message-mode tex-mode) . flyspell-mode)
;; (prog-mode . flyspell-prog-mode))
;; :config
;; (setq ispell-program-name "hunspell"
;; flyspell-issue-message-flag nil
;; flyspell-issue-welcome-flag nil)
;; (define-key flyspell-mode-map (kbd "C-;") nil t)
;; (define-key flyspell-mode-map (kbd "C-,") nil t))
;; jinx (better flyspell) ;; jinx (better flyspell)
(use-package jinx (use-package jinx
:hook (emacs-startup . global-jinx-mode) :hook (emacs-startup . global-jinx-mode)
@ -734,7 +723,7 @@ to `posframe-show' if the display is graphical."
:after (project evil) :after (project evil)
:bind (:map project-prefix-map :bind (:map project-prefix-map
("U" . my/project-gdb)) ("U" . my/project-gdb))
:init :config
(setq gdb-debuginfod-enable-setting t) (setq gdb-debuginfod-enable-setting t)
(defvar my/project-gdb-command nil (defvar my/project-gdb-command nil
"Command to use in `my/project-gdb'.") "Command to use in `my/project-gdb'.")
@ -940,8 +929,6 @@ entry, return nil."
(error (error
(and (and
(= ?\{ (char-after last-valid)) (= ?\{ (char-after last-valid))
;; up-point moves to the char after the last brace, so if the point
;; started there, we aren't in the entry
(or (not exclude-braces) (or (not exclude-braces)
(not (= start-pos last-valid))))))))) (not (= start-pos last-valid)))))))))
(defvar my/bibtex-indent-width 4 (defvar my/bibtex-indent-width 4
@ -1010,6 +997,7 @@ otherwise, call `bibtex-find-text'."
TeX-parse-self t TeX-parse-self t
reftex-plug-into-AUCTeX t) reftex-plug-into-AUCTeX t)
(setq-default TeX-master nil) (setq-default TeX-master nil)
(require 'tex)
(TeX-global-PDF-mode 1)) (TeX-global-PDF-mode 1))
;; blueprint ;; blueprint
@ -1212,7 +1200,7 @@ line in the block and manually deal with indentation."
(use-package sly (use-package sly
:hook (lisp-mode . my/-lisp-mode-autoconnect-sly) :hook (lisp-mode . my/-lisp-mode-autoconnect-sly)
:bind (:map sly-mode-map :bind (:map sly-mode-map
("C-c e" . my/sly-show-notes-at-point)) ; noindent ("C-c e" . my/sly-show-notes-at-point)) ; noindent
:autoload sly-connected-p :autoload sly-connected-p
:init :init
(defun my/-lisp-mode-autoconnect-sly () (defun my/-lisp-mode-autoconnect-sly ()
@ -1281,8 +1269,7 @@ If BUFFER is nil, the current buffer is used."
(unless (zerop prec) (unless (zerop prec)
(concat ": " (number-to-string prec)))))) (concat ": " (number-to-string prec))))))
(doom-modeline-def-segment calc (doom-modeline-def-segment calc
"Display calculator icons and info. "Display calculator icons and info."
Take directly from doom-modeline."
(concat (concat
(doom-modeline-spc) (doom-modeline-spc)
(when-let ((icon (doom-modeline-icon 'faicon "nf-fa-calculator" "🖩" ""))) (when-let ((icon (doom-modeline-icon 'faicon "nf-fa-calculator" "🖩" "")))
@ -1731,7 +1718,8 @@ buffers `helpful--sym' to `my/helpful-symbol-history'."
(when-let ((entry (cons (buffer-local-value 'helpful--sym helpful-buf) (when-let ((entry (cons (buffer-local-value 'helpful--sym helpful-buf)
(buffer-local-value 'helpful--callable-p (buffer-local-value 'helpful--callable-p
helpful-buf))) helpful-buf)))
((not (seq-contains-p my/helpful-symbol-history entry 'equal)))) ((not (seq-contains-p my/helpful-symbol-history entry
'equal))))
(when last-index (when last-index
(setq my/helpful-symbol-history (setq my/helpful-symbol-history
(seq-drop my/helpful-symbol-history last-index))) (seq-drop my/helpful-symbol-history last-index)))
@ -1833,17 +1821,6 @@ one of the normal rainbow-delimiters-depth-N-face faces."
(use-package nerd-icons) (use-package nerd-icons)
(use-package nerd-icons-completion (use-package nerd-icons-completion
:config :config
;; Temp. fix rainstormstudio/nerd-icons-completion#11
(define-minor-mode nerd-icons-completion-mode
"Add icons to completion candidates."
:global t
(if nerd-icons-completion-mode
(progn
(advice-add #'completion-metadata-get :around #'nerd-icons-completion-completion-metadata-get)
(advice-add (compat-function completion-metadata-get) :around #'nerd-icons-completion-completion-metadata-get))
(progn
(advice-remove #'completion-metadata-get #'nerd-icons-completion-completion-metadata-get)
(advice-remove (compat-function completion-metadata-get) #'nerd-icons-completion-completion-metadata-get))))
(nerd-icons-completion-mode)) (nerd-icons-completion-mode))
(use-package nerd-icons-dired (use-package nerd-icons-dired
:hook (dired-mode . nerd-icons-dired-mode)) :hook (dired-mode . nerd-icons-dired-mode))