* face for org-capture template
@ 2021-10-03 15:03 Jean-Christophe Helary
2021-10-25 13:52 ` Ihor Radchenko
0 siblings, 1 reply; 2+ messages in thread
From: Jean-Christophe Helary @ 2021-10-03 15:03 UTC (permalink / raw)
To: orgmode
I just found how to change the face based on the major mode thanks to buffer-face-mode and I'd like to know if there is a similar mechanism to apply a given face to the template buffer.
What I have is:
;; polices fixes pour modes
;; https://www.emacswiki.org/emacs/FacesPerBuffer#toc3
(defun my-buffer-face-mode-fixed ()
"Sets a fixed width (monospace) font in current buffer"
(interactive)
(setq buffer-face-mode-face '(:family "PT Mono" :height 115))
(buffer-face-mode))
(add-hook 'org-capture-mode-hook ’my-buffer-face-mode-fixed)
But that applies the fixed font to the capture target and not to the template buffer...
I'm sure the answer is somewhere right under my nose...
--
Jean-Christophe Helary @brandelune
https://mac4translators.blogspot.com
https://sr.ht/~brandelune/omegat-as-a-book/
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-10-25 13:51 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-10-03 15:03 face for org-capture template Jean-Christophe Helary
2021-10-25 13:52 ` Ihor Radchenko
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).