Add YAML mode

Signed-off-by: Magic_RB <magic_rb@redalder.org>
This commit is contained in:
Magic_RB 2022-01-08 01:17:00 +01:00
parent 9b2cf353fa
commit 4971e799bc
No known key found for this signature in database
GPG key ID: 08D5287CC5DDCA0E
3 changed files with 22 additions and 1 deletions

View file

@ -115,7 +115,8 @@
"nixng": "nixng", "nixng": "nixng",
"nixpkgs": "nixpkgs_2", "nixpkgs": "nixpkgs_2",
"org-thtml": "org-thtml", "org-thtml": "org-thtml",
"web-mode": "web-mode" "web-mode": "web-mode",
"yaml-mode": "yaml-mode"
} }
}, },
"web-mode": { "web-mode": {
@ -133,6 +134,22 @@
"repo": "web-mode", "repo": "web-mode",
"type": "github" "type": "github"
} }
},
"yaml-mode": {
"flake": false,
"locked": {
"lastModified": 1641308620,
"narHash": "sha256-/0Gt2jqJljN5glxG7H0L3rZVRc34d9jCkoYALHDRt7w=",
"owner": "yoshiki",
"repo": "yaml-mode",
"rev": "a79d2a7b9281f8c56f461d717b1ba40fc58e22fd",
"type": "github"
},
"original": {
"owner": "yoshiki",
"repo": "yaml-mode",
"type": "github"
}
} }
}, },
"root": "root", "root": "root",

View file

@ -7,6 +7,7 @@
modus-themes = { url = "github:protesilaos/modus-themes"; flake = false; }; modus-themes = { url = "github:protesilaos/modus-themes"; flake = false; };
web-mode = { url = "github:fxbois/web-mode"; flake = false; }; web-mode = { url = "github:fxbois/web-mode"; flake = false; };
hcl-mode = { url = "github:purcell/emacs-hcl-mode"; flake = false; }; hcl-mode = { url = "github:purcell/emacs-hcl-mode"; flake = false; };
yaml-mode = { url = "github:yoshiki/yaml-mode"; flake = false; };
}; };
outputs = { self outputs = { self
@ -17,6 +18,7 @@
, modus-themes , modus-themes
, web-mode , web-mode
, hcl-mode , hcl-mode
, yaml-mode
, ... , ...
}@inputs: }@inputs:
let let
@ -40,6 +42,7 @@
emacsclient -e $'(add-to-list \'load-path "${emacs-htmlize}")' emacsclient -e $'(add-to-list \'load-path "${emacs-htmlize}")'
emacsclient -e $'(add-to-list \'load-path "${web-mode}")' emacsclient -e $'(add-to-list \'load-path "${web-mode}")'
emacsclient -e $'(add-to-list \'load-path "${hcl-mode}")' emacsclient -e $'(add-to-list \'load-path "${hcl-mode}")'
emacsclient -e $'(add-to-list \'load-path "${yaml-mode}")'
emacsclient -e '(load-file "./make.el")' emacsclient -e '(load-file "./make.el")'
emacsclient -e '(magic_rb/publish-website "${which}")' emacsclient -e '(magic_rb/publish-website "${which}")'

View file

@ -18,6 +18,7 @@
(require 'web-mode) (require 'web-mode)
(require 'hcl-mode) (require 'hcl-mode)
(require 'yaml-mode)
(ignore-errors (require 'ox-thtml)) (ignore-errors (require 'ox-thtml))
;; https://alhassy.github.io/AlBasmala.html#Floating-TOC ;; https://alhassy.github.io/AlBasmala.html#Floating-TOC