gptel: Fix check for markdown-mode (#109)
* gptel.el (gptel-default-mode): Use `fboundp' instead of `featurep' to check if markdown-mode is available, since the latter requires `markdown-mode' to be already loaded.
This commit is contained in:
parent
24add64455
commit
648fa228a1
1 changed files with 1 additions and 1 deletions
2
gptel.el
2
gptel.el
|
@ -151,7 +151,7 @@ to ChatGPT. Note: this hook runs even if the request fails."
|
||||||
:type 'hook)
|
:type 'hook)
|
||||||
|
|
||||||
(defvar gptel-default-session "*ChatGPT*")
|
(defvar gptel-default-session "*ChatGPT*")
|
||||||
(defcustom gptel-default-mode (if (featurep 'markdown-mode)
|
(defcustom gptel-default-mode (if (fboundp 'markdown-mode)
|
||||||
'markdown-mode
|
'markdown-mode
|
||||||
'text-mode)
|
'text-mode)
|
||||||
"The default major mode for dedicated chat buffers.
|
"The default major mode for dedicated chat buffers.
|
||||||
|
|
Loading…
Add table
Reference in a new issue