focus-on-hover, auctex
Signed-off-by: Ian Griffin <migriffin@disroot.org>
This commit is contained in:
parent
a3893fc061
commit
6221e35733
|
|
@ -5,20 +5,19 @@ this file/section configures the UI settings
|
|||
|
||||
* Toolbar and Scrollbar
|
||||
removing this stuff makes emacs looks more cleaner
|
||||
#+begin_src emacs-lisp
|
||||
(tool-bar-mode -1)
|
||||
(menu-bar-mode 1)
|
||||
(scroll-bar-mode -1)
|
||||
#+end_src
|
||||
|
||||
#+begin_src emacs-lisp
|
||||
(tool-bar-mode -1)
|
||||
(menu-bar-mode -1)
|
||||
(scroll-bar-mode -1)
|
||||
#+end_src
|
||||
|
||||
* Maximize
|
||||
Start emacs as a maximized window at start
|
||||
|
||||
#+BEGIN_SRC emacs-lisp
|
||||
|
||||
#+begin_src emacs-lisp
|
||||
;; (add-hook 'window-setup-hook 'toggle-frame-maximized t)
|
||||
|
||||
#+END_SRC
|
||||
#+end_src
|
||||
|
||||
* Window Size
|
||||
Set the default window size when making a new frame
|
||||
|
|
@ -116,6 +115,11 @@ sets the tab size 5 spaces
|
|||
;; (display-time-mode)
|
||||
#+END_SRC
|
||||
|
||||
* Focus on Hover
|
||||
#+begin_src emacs-lisp
|
||||
(setq mouse-autoselect-window t)
|
||||
#+end_src
|
||||
|
||||
* Ligatures
|
||||
#+begin_src emacs-lisp
|
||||
;; (when (> emacs-major-version 28)
|
||||
|
|
|
|||
|
|
@ -16,7 +16,7 @@
|
|||
* Built-in Modes
|
||||
** hook default settings to configured language modes
|
||||
#+begin_src emacs-lisp
|
||||
(let ((langs '("sh" "c++" "mhtml" "java" "js" "json" "python" "latex" "typescript-ts" "tsx-ts")))
|
||||
(let ((langs '("sh" "c++" "mhtml" "java" "js" "json" "python" "LaTeX" "typescript-ts" "tsx-ts")))
|
||||
(dolist (lang langs)
|
||||
(add-hook (intern (concat lang "-mode-hook")) (lambda () (lang-default-settings)))))
|
||||
#+end_src
|
||||
|
|
@ -96,6 +96,22 @@ No longer using typescript-mode, as there's a builtin typescript-ts mode in Emac
|
|||
("\\.jsonl\\'" . json-mode)))
|
||||
#+end_src
|
||||
|
||||
** LaTeX (AUCTeX)
|
||||
|
||||
#+begin_src emacs-lisp
|
||||
(use-package tex
|
||||
:ensure auctex
|
||||
:custom
|
||||
(TeX-view-program-selection '((output-pdf "PDF Tools")) "set emacs as pdf viewer")
|
||||
(TeX-source-correlate-start-server t "recommended setting")
|
||||
(TeX-engine 'xetex "set engine to xelatex")
|
||||
(TeX-PDF-mode t "use pdf mode")
|
||||
(TeX-auto-save t "recommended setting")
|
||||
(TeX-parse-self t "packages support")
|
||||
:config
|
||||
(add-hook 'TeX-after-compilation-finished-functions #'TeX-revert-document-buffer))
|
||||
#+end_src
|
||||
|
||||
** Python
|
||||
*** Pyenv
|
||||
python venv manager
|
||||
|
|
|
|||
Loading…
Reference in New Issue