Add and re-configure ligature package as submodule

This commit is contained in:
Evie Litherland-Smith 2024-09-07 08:01:22 +01:00
parent 1f939cc9bd
commit c900040cd1
3 changed files with 18 additions and 14 deletions

3
.gitmodules vendored
View file

@ -1,3 +1,6 @@
[submodule "external-packages/nerd-icons-dired"] [submodule "external-packages/nerd-icons-dired"]
path = external-packages/nerd-icons-dired path = external-packages/nerd-icons-dired
url = https://github.com/rainstormstudio/nerd-icons-dired.git url = https://github.com/rainstormstudio/nerd-icons-dired.git
[submodule "external-packages/ligature.el"]
path = external-packages/ligature.el
url = https://github.com/mickeynp/ligature.el.git

View file

@ -181,19 +181,18 @@ Configure the look and feel of Emacs
*** Font ligatures *** Font ligatures
#+begin_src emacs-lisp #+begin_src emacs-lisp
(use-package ligature (use-package ligature
:if (package-installed-p 'ligature) :load-path "external-packages/ligature.el/"
:disabled t
:functions (ligature-set-ligatures :functions (ligature-set-ligatures
global-ligature-mode) global-ligature-mode)
:config :config
(ligature-set-ligatures (ligature-set-ligatures
'(text-mode prog-mode org-mode) '(text-mode prog-mode org-mode)
'("->" "-->" "--->" "=>" "==>" "===>" '("<---" "<--" "<<-" "<-" "->" "-->" "--->" "<->" "<-->" "<--->" "<---->" "<!--"
"<--" "<---" "<-" "<==" "<===" "<==" "<===" "<=" "=>" "=>>" "==>" "===>" ">=" "<=>" "<==>" "<===>" "<====>" "<!---"
"<->" "<-->" "<--->" "<---->" "<~~" "<~" "~>" "~~>" "::" ":::" "==" "!=" "===" "!=="
"<=>" "<==>" "<===>" "<====>" ":=" ":-" ":+" "<*" "<*>" "*>" "<|" "<|>" "|>" "+:" "-:" "=:" "<******>" "++" "+++"))
"<=" ">=" "==" "!=" "===" "!==" "!===" (ligature-set-ligatures 'markdown-mode '(("=" (rx (+ "=") (? (| ">" "<"))))
"/*" "*/" "+++" "<~~" "~~>" "<!---" "---!>")) ("-" (rx (+ "-")))))
(global-ligature-mode +1)) (global-ligature-mode +1))
#+end_src #+end_src
*** Font Showcase *** Font Showcase
@ -201,12 +200,12 @@ This is a showcase of various font and UI features to act as a
standard candle. standard candle.
**** Font emphasis **** Font emphasis
Examples of: Examples of:
- *Bold text* - *Bold text* (*)
- /Italic text/ - /Italic text/ (/)
- _Underscored text_ - _Underscored text_ (_)
- =Literal text= - =Literal text= (=)
- ~Code~ - ~Code~ (~)
- +Strike-through+ - +Strike-through+ (+)
**** Character showcase **** Character showcase
#+begin_example #+begin_example
ABC.DEF.GHI.JKL.MNO.PQRS.TUV.WXYZ abc.def.ghi.jkl.mno.pqrs.tuv.wxyz ABC.DEF.GHI.JKL.MNO.PQRS.TUV.WXYZ abc.def.ghi.jkl.mno.pqrs.tuv.wxyz
@ -1447,6 +1446,7 @@ Configure email with iCalendar event support, to integrate with
(project-find-regexp "Find regexp") (project-find-regexp "Find regexp")
(project-find-dir "Find directory") (project-find-dir "Find directory")
(project-eshell "Eshell") (project-eshell "Eshell")
(project-vc-dir "VC Status")
(magit-project-status "Magit"))) (magit-project-status "Magit")))
:config :config
(defun my/project-find-common-projects () (defun my/project-find-common-projects ()

@ -0,0 +1 @@
Subproject commit 6ac1634612dbd42f7eb81ecaf022bd239aabb954