Add nginx-mode for Emacs

This commit is contained in:
Tom Willemse 2024-04-04 22:02:39 -07:00
parent 0b61b8cf0c
commit 7499cb2305
2 changed files with 48 additions and 24 deletions

View file

@ -143,7 +143,8 @@
#:select (emacs-inkplate #:select (emacs-inkplate
oni-emacs-company oni-emacs-company
emacs-outli emacs-outli
emacs-syncthing-status)) emacs-syncthing-status
emacs-nginx-mode))
#:use-module ((oni packages emacs-config) #:use-module ((oni packages emacs-config)
#:select (emacs-oni-org-roam #:select (emacs-oni-org-roam
emacs-oni-elfeed emacs-oni-elfeed
@ -322,6 +323,7 @@
emacs-oni-tramp emacs-oni-tramp
emacs-oni-yaml emacs-oni-yaml
(with-my-emacs-company-package emacs-oni-python) (with-my-emacs-company-package emacs-oni-python)
emacs-nginx-mode
tree-sitter-bash tree-sitter-bash
tree-sitter-scheme tree-sitter-scheme

View file

@ -423,37 +423,59 @@ text.")
with character preview in completion prompt.") with character preview in completion prompt.")
(license license:gpl3+)))) (license license:gpl3+))))
(define-public emacs-nginx-mode
(let ((commit "de0519941ee235dcd1587f6aab68152285e1aaaa")
(revision "0"))
(package
(name "emacs-nginx-mode")
(version (git-version "1.1.9" revision commit))
(source
(origin
(method git-fetch)
(uri (git-reference
(url "git://ryuslash.org/nginx-mode.git")
(commit commit)))
(file-name (git-file-name name version))
(sha256
(base32 "1nqyz2mkhvm8ixgxla93nfmxqn0qs8vx7ma598kmyp292b3k9whr"))))
(build-system emacs-build-system)
(home-page "https://github.com/ajc/nginx-mode")
(synopsis "Emacs major mode for editing nginx config files")
(description "This package provides an Emacs major mode for
editing nginx config files.")
(license license:gpl2+))))
(define-public emacs-nroam (define-public emacs-nroam
(package (package
(name "emacs-nroam") (name "emacs-nroam")
(version "20210325.2015") (version "20210325.2015")
(source (source
(origin (origin
(method url-fetch) (method url-fetch)
(uri (string-append (uri (string-append
"https://melpa.org/packages/nroam-" "https://melpa.org/packages/nroam-"
version version
".tar")) ".tar"))
(sha256 (sha256
(base32 (base32
"1aybc2k8kyf2dlpbq39p3k1nsvzrhw58xarbwwq0qgz91r49m4xq")))) "1aybc2k8kyf2dlpbq39p3k1nsvzrhw58xarbwwq0qgz91r49m4xq"))))
(build-system emacs-build-system) (build-system emacs-build-system)
(propagated-inputs (propagated-inputs
`(("emacs-org-roam" ,emacs-org-roam) `(("emacs-org-roam" ,emacs-org-roam)
("emacs-org" ,emacs-org))) ("emacs-org" ,emacs-org)))
(home-page (home-page
"https://github.com/NicolasPetton/nroam") "https://github.com/NicolasPetton/nroam")
(synopsis (synopsis
"Org-roam backlinks within org-mode buffers") "Org-roam backlinks within org-mode buffers")
(description (description
"nroam is a supplementary package for org-roam that replaces the backlink side "nroam is a supplementary package for org-roam that replaces the backlink side
buffer of Org-roam. Instead, it displays org-roam backlinks at the end of buffer of Org-roam. Instead, it displays org-roam backlinks at the end of
org-roam buffers. org-roam buffers.
To setup nroam for all org-roam buffers, evaluate the following: To setup nroam for all org-roam buffers, evaluate the following:
(add-hook 'org-mode-hook #'nroam-setup-maybe) (add-hook 'org-mode-hook #'nroam-setup-maybe)
") ")
(license license:gpl3+))) (license license:gpl3+)))
(define-public emacs-outli (define-public emacs-outli
(package (package