Stefan Reichör <ste...@xsteve.at> writes:

> +(defun org-mode-or-derived-mode-p ()
> +  "Check if the current buffer is in Org-mode or a derived mode."
> +  (if (derived-mode-p 'org-mode) t nil))

The if is superfluous.  And instead of a new function, I'd rather add an
optional `derived' parameter to `org-mode-p'.

Bye,
Tassilo


Reply via email to