Skip to content

Commit

Permalink
autoload my-lib, use laas everywhere
Browse files Browse the repository at this point in the history
  • Loading branch information
semenInRussia committed Jun 27, 2024
1 parent 4440c5b commit 6c835f2
Show file tree
Hide file tree
Showing 10 changed files with 285 additions and 276 deletions.
23 changes: 23 additions & 0 deletions lisp/editing/my-aas.el
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,28 @@
:hook ((latex-mode-hook . aas-mode)
(TeX-latex-mode-hook . aas-mode)))

(leaf laas
:ensure t
:hook LaTeX-mode-hook
:defun ((aas-set-snippets . aas)
(texmathp . texmathp))
:config
(aas-set-snippets 'laas-mode
:cond #'texmathp
;; Some Physics Units
;; "As" "\\mathrm{А}"
;; "Vs" "\\mathrm{В}"
;; "Oms" "\\mathrm{Ом}"
"cls" "^\\circ C"

;; Some Physics Sheet
;; "eqv" "\\mathrm{Экв.}"

;; Some Cool Symbols
"trg" "\\triangle"
"agl" "\\angle"
"grd" "^\\circ"
"xor" "\\oplus"))

(provide 'my-aas)
;;; my-aas.el ends here
2 changes: 1 addition & 1 deletion lisp/editing/my-eldoc.el
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@
(leaf eldoc
:ensure (eldoc :type built-in)
:custom ((eldoc-echo-area-display-truncation-message . nil)
(eldoc-idle-delay . 0.5)))
(eldoc-idle-delay . 0.7)))

(leaf eldoc-box
:ensure (eldoc-box
Expand Down
3 changes: 1 addition & 2 deletions lisp/editing/my-smartparens.el
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@
;;; Code:

(require 'my-leaf)
(require 'my-lib)

(require 'dash)

(leaf smartparens
:ensure (smartparens :repo "Fuco1/smartparens" :host github)
Expand Down
Loading

0 comments on commit 6c835f2

Please sign in to comment.