Add embedded syntax hl

This commit is contained in:
muon 2025-12-26 10:48:31 +00:00
parent 5bdf9e3a2c
commit fc14a394aa
5 changed files with 284 additions and 250 deletions

View file

@ -12,46 +12,48 @@
programs.nyxt = {
enable = false;
config = ''
(in-package #:nyxt-user)
config =
# lisp
''
(in-package #:nyxt-user)
(defvar *my-search-engines*
(list
(make-instance 'search-engine
:name "Searx"
:shortcut "s"
#+nyxt-4 :control-url #+nyxt-3 :search-url
""https://search.muon.host/?q=~a";")
(defvar *my-search-engines*
(list
(make-instance 'search-engine
:name "Searx"
:shortcut "s"
#+nyxt-4 :control-url #+nyxt-3 :search-url
""https://search.muon.host/?q=~a";")
(make-instance 'search-engine
:name "nixpkgs"
:shortcut "np"
#+nyxt-4 :control-url #+nyxt-3 :search-url
"https://search.nixos.org/packages?channel=unstable&query=~a")))
(make-instance 'search-engine
:name "nixpkgs"
:shortcut "np"
#+nyxt-4 :control-url #+nyxt-3 :search-url
"https://search.nixos.org/packages?channel=unstable&query=~a")))
(make-instance 'search-engine
:name "nix options"
:shortcut "np"
#+nyxt-4 :control-url #+nyxt-3 :search-url
"https://search.nixos.org/options?channel=unstable&query=~a")))
(make-instance 'search-engine
:name "nix options"
:shortcut "np"
#+nyxt-4 :control-url #+nyxt-3 :search-url
"https://search.nixos.org/options?channel=unstable&query=~a")))
(make-instance 'search-engine
:name "home-manager"
:shortcut "hm"
#+nyxt-4 :control-url #+nyxt-3 :search-url
"https://home-manager-options.extranix.com/?release=master&query=~a")))
(make-instance 'search-engine
:name "home-manager"
:shortcut "hm"
#+nyxt-4 :control-url #+nyxt-3 :search-url
"https://home-manager-options.extranix.com/?release=master&query=~a")))
(define-configuration browser
((restore-session-on-startup-p nil)
(default-new-buffer-url (quri:uri "https://online.bonjourr.fr/"))
(external-editor-program ("alacritty -e hx")
#+nyxt-4
(search-engine-suggestions-p nil)
#+nyxt-4
(search-engines (append %slot-default% *my-search-engines*))
))
'';
(define-configuration browser
((restore-session-on-startup-p nil)
(default-new-buffer-url (quri:uri "https://online.bonjourr.fr/"))
(external-editor-program ("alacritty -e hx")
#+nyxt-4
(search-engine-suggestions-p nil)
#+nyxt-4
(search-engines (append %slot-default% *my-search-engines*))
))
'';
};
programs.qutebrowser = {
@ -73,23 +75,25 @@
hm = "https://home-manager-options.extranix.com/?release=master&query={}";
};
extraConfig = ''
host = c.content.blocking.hosts.lists.append
host("https://www.github.developerdan.com/hosts/lists/facebook-extended.txt")
extraConfig =
# py
''
host = c.content.blocking.hosts.lists.append
host("https://www.github.developerdan.com/hosts/lists/facebook-extended.txt")
abp = c.content.blocking.adblock.lists.append
abp("https://fanboy.co.nz/r/fanboy-ultimate.txt")
abp("https://fanboy.co.nz/fanboy-antifacebook.txt")
abp("https://fanboy.co.nz/fanboy-annoyance.txt")
abp("https://fanboy.co.nz/fanboy-cookiemonster.txt")
abp("https://easylist-downloads.adblockplus.org/antiadblockfilters.txt")
abp("https://easylist-downloads.adblockplus.org/abp-filters-anti-cv.txt")
abp = c.content.blocking.adblock.lists.append
abp("https://fanboy.co.nz/r/fanboy-ultimate.txt")
abp("https://fanboy.co.nz/fanboy-antifacebook.txt")
abp("https://fanboy.co.nz/fanboy-annoyance.txt")
abp("https://fanboy.co.nz/fanboy-cookiemonster.txt")
abp("https://easylist-downloads.adblockplus.org/antiadblockfilters.txt")
abp("https://easylist-downloads.adblockplus.org/abp-filters-anti-cv.txt")
abp("https://github.com/DandelionSprout/adfilt/raw/master/LegitimateURLShortener.txt")
abp("https://github.com/DandelionSprout/adfilt/raw/master/AnnoyancesList")
abp("https://github.com/DandelionSprout/adfilt/raw/master/SocialShareList.txt")
abp("https://github.com/DandelionSprout/adfilt/raw/master/ExtremelyCondensedList.txt")
'';
abp("https://github.com/DandelionSprout/adfilt/raw/master/LegitimateURLShortener.txt")
abp("https://github.com/DandelionSprout/adfilt/raw/master/AnnoyancesList")
abp("https://github.com/DandelionSprout/adfilt/raw/master/SocialShareList.txt")
abp("https://github.com/DandelionSprout/adfilt/raw/master/ExtremelyCondensedList.txt")
'';
};
};
}