mirror of
https://github.com/ellmau/nixos.git
synced 2025-12-19 09:29:36 +01:00
EMACS added ligatures package for prog mode
Signed-off-by: Stefan Ellmauthaler <stefan.ellmauthaler@tu-dresden.de>
This commit is contained in:
parent
49c26b3495
commit
550eb612c6
@ -559,6 +559,20 @@
|
|||||||
:commands
|
:commands
|
||||||
(academic-phrases
|
(academic-phrases
|
||||||
academic-phrases-by-section))
|
academic-phrases-by-section))
|
||||||
|
|
||||||
|
(use-package ligature
|
||||||
|
:config
|
||||||
|
(ligature-set-ligatures 'prog-mode
|
||||||
|
'("&&" "***" "*>" "\\\\" "||" "|>" "::"
|
||||||
|
"==" "===" "==>" "=>" "=<<" "!!" ">>"
|
||||||
|
">>=" ">>>" ">>-" ">-" "->" "-<" "-<<"
|
||||||
|
"<*" "<*>" "<|" "<|>" "<$>" "<>" "<-"
|
||||||
|
; disable ++ until > emacs-27.2, since C++-mode causes a crash otherwise
|
||||||
|
; "<<" "<<<" "<+>" ".." "..." "++" "+++"
|
||||||
|
"<<" "<<<" "<+>" ".." "..." "+++"
|
||||||
|
"/=" ":::" ">=>" "->>" "<=>" "<=<" "<->"))
|
||||||
|
(global-ligature-mode t))
|
||||||
|
|
||||||
(custom-set-faces
|
(custom-set-faces
|
||||||
;; custom-set-faces was added by Custom.
|
;; custom-set-faces was added by Custom.
|
||||||
;; If you edit it by hand, you could mess it up, so be careful.
|
;; If you edit it by hand, you could mess it up, so be careful.
|
||||||
|
|||||||
@ -84,7 +84,10 @@ let
|
|||||||
yaml-mode
|
yaml-mode
|
||||||
yasnippet
|
yasnippet
|
||||||
#zenburn-theme
|
#zenburn-theme
|
||||||
] ++ (with lpkgs; [org-roam-ui])));
|
] ++ (with lpkgs; [
|
||||||
|
org-roam-ui
|
||||||
|
ligatures
|
||||||
|
])));
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
services.emacs = {
|
services.emacs = {
|
||||||
|
|||||||
@ -16,4 +16,15 @@ with epkgs; rec{
|
|||||||
cp -r out $out/share/emacs/site-lisp
|
cp -r out $out/share/emacs/site-lisp
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
ligatures = trivialBuild {
|
||||||
|
pname = "ligatures";
|
||||||
|
version = "unstable-2021-08-27";
|
||||||
|
src = pkgs.fetchFromGitHub {
|
||||||
|
owner = "mickeynp";
|
||||||
|
repo = "ligature.el";
|
||||||
|
rev = "d3426509cc5436a12484d91e48abd7b62429b7ef";
|
||||||
|
sha256 = "baFDkfQLM2MYW2QhMpPnOMSfsLlcp9fO5xfyioZzOqg=";
|
||||||
|
};
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user