emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Re: org-block-background in 8.3.1?
@ 2015-08-20  8:33 JI, Xiang
  0 siblings, 0 replies; 8+ messages in thread
From: JI, Xiang @ 2015-08-20  8:33 UTC (permalink / raw)
  To: bzg; +Cc: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 773 bytes --]

The thing is that while I could previously use variable-pitch-mode in the rest of org buffer and still let source code blocks inherit fixed-pitch face, now this seems to be impossible to achieve. With org-block-background face gone, even if I already set org-block face to inherit fixed-pitch, the face displayed in blocks such as #BEGIN_SRC haskell is still variable-pitch as the rest of the buffer. Only plain blocks of #BEGIN_SRC without any language specified are displayed in fixed-pitch. Any workaround for this? Thanks.

Related Stackexchange questions:

https://stackoverflow.com/questions/26290924/fontify-r-code-blocks-in-org-mode%E2%80%938

https://emacs.stackexchange.com/questions/14824/org-block-background-font-not-having-effect



[-- Attachment #2: Type: text/html, Size: 6111 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread
* org-block-background in 8.3.1?
@ 2015-08-12  2:31 Luke Crook
  2015-08-12  2:47 ` Kyle Meyer
  0 siblings, 1 reply; 8+ messages in thread
From: Luke Crook @ 2015-08-12  2:31 UTC (permalink / raw)
  To: emacs-orgmode

I'm not sure if I still need to set "org-block-background" in 8.3.1.  

But if I do need to continue setting this, what is the new name for "org-
block-background"?

(set-face-attribute 'org-block-background nil 
                    :height (round (* 0.9 (face-attribute 'fixed-pitch 
:height))))
(set-face-attribute 'org-block nil 
                    :height (round (* 0.9 (face-attribute 'fixed-pitch 
:height))))

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2015-08-20  8:33 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-08-20  8:33 org-block-background in 8.3.1? JI, Xiang
  -- strict thread matches above, loose matches on Subject: below --
2015-08-12  2:31 Luke Crook
2015-08-12  2:47 ` Kyle Meyer
2015-08-12  7:44   ` Sebastien Vauban
2015-08-12 16:55     ` Kyle Meyer
2015-08-18 17:26     ` Bastien
2015-08-19 10:13       ` Sebastien Vauban
2015-08-19 10:29         ` Bastien

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).