Skip to content

Commit

Permalink
Add documentation and group to difftastic mode
Browse files Browse the repository at this point in the history
  • Loading branch information
Przemyslaw Kryger authored and Przemyslaw Kryger committed Sep 22, 2023
1 parent 820a948 commit 0b40f3c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions difftastic.el
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,10 @@ See `advice-add' for explanation of SYMBOL, HOW, and FUNCTION arguments."
(advice-remove ,symbol fn-advice-var))))

(define-derived-mode difftastic-mode fundamental-mode "difftastic"
"Major mode to display output of difftastic.
It uses `view-mode' to provide a familiar behaviour to view diffs."
:group 'difftastic
(view-mode)
(setq buffer-read-only t))

Expand Down

0 comments on commit 0b40f3c

Please sign in to comment.