Use ligature.el for ligatures in emacs
This commit is contained in:
parent
a648294eba
commit
1c2401fc2c
1 changed files with 24 additions and 3 deletions
|
@ -1,5 +1,13 @@
|
||||||
{ config, lib, pkgs, ... }:
|
{ config, lib, pkgs, ... }:
|
||||||
|
|
||||||
|
let
|
||||||
|
ligature = pkgs.fetchFromGitHub {
|
||||||
|
owner = "mickeynp";
|
||||||
|
repo = "ligature.el";
|
||||||
|
rev = "9357156a917a021a87b33ee391567a5d8e44794a";
|
||||||
|
hash = "sha256-Bgb5wFyx0hMilpihxA8cTrRVw71EBOw2DczlM4lSNMs=";
|
||||||
|
};
|
||||||
|
in
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
./firefox
|
./firefox
|
||||||
|
@ -26,9 +34,22 @@
|
||||||
emacs.extraConfig = [
|
emacs.extraConfig = [
|
||||||
''
|
''
|
||||||
;; Ligatures in GUI mode
|
;; Ligatures in GUI mode
|
||||||
;; Should probably switch to ligature.el, but it isn't on MELPA (yet).
|
(use-package ligature
|
||||||
(use-package fira-code-mode :config (when window-system (global-fira-code-mode)))
|
:load-path "${ligature}"
|
||||||
|
:config
|
||||||
|
(ligature-set-ligatures 't '("www" "**" "***" "**/" "*>" "*/" "\\\\" "\\\\\\" "{-" "::"
|
||||||
|
":::" ":=" "!!" "!=" "!==" "-}" "----" "-->" "->" "->>"
|
||||||
|
"-<" "-<<" "-~" "#{" "#[" "##" "###" "####" "#(" "#?" "#_"
|
||||||
|
"#_(" ".-" ".=" ".." "..<" "..." "?=" "??" ";;" "/*" "/**"
|
||||||
|
"/=" "/==" "/>" "//" "///" "&&" "||" "||=" "|=" "|>" "^=" "$>"
|
||||||
|
"++" "+++" "+>" "=:=" "==" "===" "==>" "=>" "=>>" "<="
|
||||||
|
"=<<" "=/=" ">-" ">=" ">=>" ">>" ">>-" ">>=" ">>>" "<*"
|
||||||
|
"<*>" "<|" "<|>" "<$" "<$>" "<!--" "<-" "<--" "<->" "<+"
|
||||||
|
"<+>" "<=" "<==" "<=>" "<=<" "<>" "<<" "<<-" "<<=" "<<<"
|
||||||
|
"<~" "<~~" "</" "</>" "~@" "~-" "~>" "~~" "~~>" "%%")
|
||||||
|
)
|
||||||
|
(global-ligature-mode 't)
|
||||||
|
)
|
||||||
''
|
''
|
||||||
];
|
];
|
||||||
nix.unfreePackages = [ "google-chrome" ];
|
nix.unfreePackages = [ "google-chrome" ];
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue