Skip to content

Commit

Permalink
forge-{issue,pullreq}-mode-map: Set forge-topic-mode-map as parent
Browse files Browse the repository at this point in the history
  • Loading branch information
tarsius committed Nov 8, 2024
1 parent 1037fe3 commit 9ac2afb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lisp/forge-topic.el
Original file line number Diff line number Diff line change
Expand Up @@ -1091,6 +1091,7 @@ This mode itself is never used directly."
(setq-local markdown-translate-filename-function
#'forge--markdown-translate-filename-function))

(defvar-keymap forge-issue-mode-map :parent forge-topic-mode-map)
(define-derived-mode forge-issue-mode forge-topic-mode "Issue"
"Major mode for looking at a Forge issue."
:interactive nil)
Expand All @@ -1104,6 +1105,7 @@ This mode itself is never used directly."
forge-insert-topic-marks
forge-insert-topic-assignees))

(defvar-keymap forge-pullreq-mode-map :parent forge-topic-mode-map)
(define-derived-mode forge-pullreq-mode forge-topic-mode "Pull-request"
"Major mode for looking at a Forge pull-request."
:interactive nil)
Expand Down

0 comments on commit 9ac2afb

Please sign in to comment.