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"]
path = external-packages/nerd-icons-dired
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
#+begin_src emacs-lisp
(use-package ligature
:if (package-installed-p 'ligature)
:disabled t
:load-path "external-packages/ligature.el/"
:functions (ligature-set-ligatures
global-ligature-mode)
:config
(ligature-set-ligatures
'(text-mode prog-mode org-mode)
'("->" "-->" "--->" "=>" "==>" "===>"
"<--" "<---" "<-" "<==" "<==="
"<->" "<-->" "<--->" "<---->"
"<=>" "<==>" "<===>" "<====>"
"<=" ">=" "==" "!=" "===" "!==" "!==="
"/*" "*/" "+++" "<~~" "~~>" "<!---" "---!>"))
'("<---" "<--" "<<-" "<-" "->" "-->" "--->" "<->" "<-->" "<--->" "<---->" "<!--"
"<==" "<===" "<=" "=>" "=>>" "==>" "===>" ">=" "<=>" "<==>" "<===>" "<====>" "<!---"
"<~~" "<~" "~>" "~~>" "::" ":::" "==" "!=" "===" "!=="
":=" ":-" ":+" "<*" "<*>" "*>" "<|" "<|>" "|>" "+:" "-:" "=:" "<******>" "++" "+++"))
(ligature-set-ligatures 'markdown-mode '(("=" (rx (+ "=") (? (| ">" "<"))))
("-" (rx (+ "-")))))
(global-ligature-mode +1))
#+end_src
*** Font Showcase
@ -201,12 +200,12 @@ This is a showcase of various font and UI features to act as a
standard candle.
**** Font emphasis
Examples of:
- *Bold text*
- /Italic text/
- _Underscored text_
- =Literal text=
- ~Code~
- +Strike-through+
- *Bold text* (*)
- /Italic text/ (/)
- _Underscored text_ (_)
- =Literal text= (=)
- ~Code~ (~)
- +Strike-through+ (+)
**** Character showcase
#+begin_example
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-dir "Find directory")
(project-eshell "Eshell")
(project-vc-dir "VC Status")
(magit-project-status "Magit")))
:config
(defun my/project-find-common-projects ()

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