Add oni-python configuration

This commit is contained in:
Tom Willemse 2024-04-04 22:01:12 -07:00
parent b439a924ce
commit 331c84986c
2 changed files with 38 additions and 14 deletions

View file

@ -191,7 +191,8 @@
emacs-oni-shr emacs-oni-shr
emacs-oni-tramp emacs-oni-tramp
emacs-oni-embrace emacs-oni-embrace
emacs-oni-yaml)) emacs-oni-yaml
emacs-oni-python))
#:use-module ((oni packages hlwm-run-or-raise) #:use-module ((oni packages hlwm-run-or-raise)
#:select (hlwm-run-or-raise)) #:select (hlwm-run-or-raise))
#:use-module ((oni packages inbox-size) #:use-module ((oni packages inbox-size)
@ -320,6 +321,7 @@
emacs-oni-shr emacs-oni-shr
emacs-oni-tramp emacs-oni-tramp
emacs-oni-yaml emacs-oni-yaml
(with-my-emacs-company-package emacs-oni-python)
tree-sitter-bash tree-sitter-bash
tree-sitter-scheme tree-sitter-scheme

View file

@ -9,6 +9,8 @@
#:use-module (gnu packages bash) #:use-module (gnu packages bash)
#:use-module ((gnu packages mail) #:use-module ((gnu packages mail)
#:select (emacs-notmuch)) #:select (emacs-notmuch))
#:use-module ((gnu packages python-xyz)
#:select (python-black))
#:use-module (oni packages emacs)) #:use-module (oni packages emacs))
(define-public emacs-oni-config (define-public emacs-oni-config
@ -395,21 +397,41 @@ Emacs")))
(synopsis "My Emacs paredit configuration") (synopsis "My Emacs paredit configuration")
(description "This package provides my configuration for paredit"))) (description "This package provides my configuration for paredit")))
(define-public emacs-oni-python
(package
(inherit emacs-oni-config)
(name "emacs-oni-python")
(arguments
`(#:phases
(modify-phases %standard-phases
(add-after 'unpack 'chdir-oni-python
(λ _ (chdir "oni-python"))))
#:include '("\\.el$" "^snippets\\/python-mode\\/")))
(propagated-inputs
(list emacs-oni-yasnippet
emacs-oni-company
emacs-oni-flycheck
emacs-oni-hydra
emacs-oni-lsp
emacs-rainbow-delimiters
emacs-reformatter
python-black))))
(define-public emacs-oni-clojure (define-public emacs-oni-clojure
(package (package
(inherit emacs-oni-config) (inherit emacs-oni-config)
(name "emacs-oni-clojure") (name "emacs-oni-clojure")
(arguments (arguments
'(#:include '("oni-clojure.el"))) '(#:include '("oni-clojure.el")))
(propagated-inputs (propagated-inputs
`(("emacs-clojure-mode" ,emacs-clojure-mode) `(("emacs-clojure-mode" ,emacs-clojure-mode)
("emacs-oni-company" ,emacs-oni-company) ("emacs-oni-company" ,emacs-oni-company)
("emacs-cider" ,emacs-cider) ("emacs-cider" ,emacs-cider)
("emacs-oni-paredit" ,emacs-oni-paredit) ("emacs-oni-paredit" ,emacs-oni-paredit)
("emacs-rainbow-delimiters" ,emacs-rainbow-delimiters) ("emacs-rainbow-delimiters" ,emacs-rainbow-delimiters)
("emacs-oni-data-dir" ,emacs-oni-data-dir))) ("emacs-oni-data-dir" ,emacs-oni-data-dir)))
(synopsis "My Emacs Clojure configuration") (synopsis "My Emacs Clojure configuration")
(description "This package provides my configuration for Clojure"))) (description "This package provides my configuration for Clojure")))
(define-public emacs-oni-cmake (define-public emacs-oni-cmake
(package (package