Files
.emacs.d/modules/version-control/siren-forge.el
Jim Myhrberg fe6a4e7ce5 fix(elisp): add lexical-binding comment to all files to suppress new Emacs 31 warnings
I've set `lexical-binding` to `nil` in all Emacs Lisp files to suppress
the warnings introduced in Emacs 31 requiring all elisp files to have a
`lexical-binding` comment.

This retains the default behavior of dynamic binding when no
`lexical-binding` comment is present. With it set to `t` across the
board, various things break, and fixing those is a task for another day.
2025-06-29 12:23:03 +01:00

45 lines
1.1 KiB
EmacsLisp

;;; siren-forge.el --- jimeh's Emacs Siren: forge configuration -*- lexical-binding: nil; -*-
;;; Commentary:
;; Basic configuration for forge.
;;; Code:
(require 'siren-code-review)
(require 'siren-gh-notify)
(require 'siren-github-review)
(require 'siren-magit)
(use-package forge
:defer t
:after magit
:custom
(forge-database-file (siren-cache-dir "forge-database.sqlite"))
:config
(transient-insert-suffix 'forge-dispatch '(1)
["Pull Request"
("p c" "code-review at point" code-review-forge-pr-at-point)
("p g" "github-review at point" github-review-forge-pr-at-point)])
(transient-insert-suffix 'forge-dispatch '(1)
["GitHub"
("g n" "notifications" gh-notify)]))
(use-package forge-post
:straight forge
:defer t
:hook
(forge-post-mode . siren-forge-post-mode-setup)
:preface
(defun siren-forge-post-mode-setup ()
(setq-local prettier-js-args '("--parser" "markdown"
"--print-width" "80"
"--prose-wrap" "always"))))
(provide 'siren-forge)
;;; siren-forge.el ends here