Experimenting with doom-emacs

This commit is contained in:
Andrea Ciceri 2022-10-29 17:10:19 +02:00
parent b3071a310f
commit a6b6fa1d02
No known key found for this signature in database
GPG key ID: A1FC89532D1C5654
3 changed files with 20 additions and 3 deletions

View file

@ -91,5 +91,21 @@
doom-variable-pitch-font (font-spec :family "Fira Code") doom-variable-pitch-font (font-spec :family "Fira Code")
doom-big-font-increment 1) doom-big-font-increment 1)
(dotimes (workspace-number 10) (after! vterm
(define-key vterm-mode-map (kbd (format "M-%d" workspace-number)) nil)) (dotimes (workspace-number 10)
(define-key vterm-mode-map (kbd (format "M-%d" workspace-number)) nil)))
(after! polymode (progn
(define-hostmode poly-nix-hostmode :mode 'nix-mode)
(define-innermode poly-sh-innermode
:mode 'sh-mode
:head-matcher "^.*=.*''.*$"
:tail-matcher "^.*''.*;.*$"
:head-mode 'host
:tail-mode 'host)
(define-polymode poly-nix-mode
:hostmode 'poly-nix-hostmode
:innermodes '(poly-sh-innermode))
))

View file

@ -52,3 +52,4 @@
(package! dirvish) (package! dirvish)
(package! git-auto-commit-mode) (package! git-auto-commit-mode)
(package! polymode)

View file

@ -63,7 +63,7 @@ in {
doomPackageDir = pkgs.linkFarm "my-doom-packages" [ doomPackageDir = pkgs.linkFarm "my-doom-packages" [
{ {
name = "config.el"; name = "config.el";
path = ../../doom.d/config.el; path = pkgs.emptyFile;
} }
{ {
name = "init.el"; name = "init.el";