Skip to content

Commit

Permalink
doc: add grip-theme
Browse files Browse the repository at this point in the history
  • Loading branch information
seagle0128 committed Feb 11, 2025
1 parent 2d0e464 commit ffce7f7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,9 @@ Run `M-x customize-group RET grip RET` or set the variables.
;; Command: auto, grip, go-grip or mdopen
(setq grip-command 'auto)
;; Theme choice
(setq grip-theme 'auto)
;; Use embedded webkit to preview
;; This requires GNU/Emacs version >= 26 and built with the `--with-xwidgets` option.
;; mdopen doesn't support webkit preview.
Expand Down
6 changes: 3 additions & 3 deletions grip-mode.el
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,8 @@
(const :tag "Mdopen" mdopen))
:group 'grip)

(defcustom grip-gogrip-theme 'auto
"Theme choice for go-grip."
(defcustom grip-theme 'auto
"Theme choice."
:type '(choice
(const :tag "Automatic" auto)
(const :tag "Dark" dark)
Expand Down Expand Up @@ -206,7 +206,7 @@ Use default browser unless `xwidget' is available."
(format " *grip-%d*" grip--port)
"go-grip"
(format "--port=%d" grip--port)
(format "--theme=%s" grip-gogrip-theme)
(format "--theme=%s" grip-theme)
"--browser=false"
grip--preview-file))
(message "Preview `%s' on %s" buffer-file-name (grip--preview-url))
Expand Down

0 comments on commit ffce7f7

Please sign in to comment.