Timeline for How to modify-face for a specific buffer?
Current License: CC BY-SA 4.0
14 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Apr 25, 2023 at 23:14 | comment | added | mtraceur | Wonderful! I was ripping my hair out with frustration yesterday trying to get faces to update every time I switched buffers (incl. switching windows/frames), when what I really wanted was buffer-local face customizations. Eventually I conceived of that as an option, so now after I found yet another corner-case that caused a face update in post-command-hook to not actually take effect until another input key came in, web search brought me here. Immediately problem solved. | |
| May 31, 2018 at 2:28 | history | edited | lawlist | CC BY-SA 4.0 | An extra pair of parentheses is not needed. |
| Sep 7, 2017 at 5:46 | comment | added | lawlist | @Hi-Angel -- remove the single quote in front of the word bold and try again. :) | |
| Sep 6, 2017 at 23:01 | comment | added | Hi-Angel | Are you sure it should always work? (face-remap-add-relative 'font-lock-keyword-face '((:weight 'bold))) doesn't make it bold for me. | |
| Jan 12, 2015 at 15:28 | vote | accept | wdkrnls | ||
| Jan 12, 2015 at 10:17 | comment | added | Adobe | And also a menu invoked with Shift + mouse1 (<S-down-mouse-1>, aka mouse-appearance-menu) has an item called "Change Buffer Font". | |
| Jan 12, 2015 at 10:15 | comment | added | Adobe | One more example: (face-remap-add-relative 'default '(:family "Arial")). | |
| Jan 12, 2015 at 0:23 | history | edited | lawlist | CC BY-SA 3.0 | deleted 17 characters in body |
| Jan 11, 2015 at 23:50 | comment | added | lawlist | @phils -- thank you for suggesting the use of face-remap-add-relative as a means of modifying the face-remapping-alist. I have edited the answer accordingly. | |
| Jan 11, 2015 at 23:47 | history | edited | lawlist | CC BY-SA 3.0 | added 41 characters in body |
| Jan 11, 2015 at 23:41 | history | edited | lawlist | CC BY-SA 3.0 | added 41 characters in body |
| Jan 11, 2015 at 22:53 | comment | added | phils | C-h i g (elisp) Face Remapping documents API functions intended for buffer-local modifications, and indicates that they are preferable to manipulating the alist directly. You'll be able to improve your answer that way. | |
| Jan 11, 2015 at 22:40 | comment | added | phils | Nice; the variable docstring even mentions the buffer-local scenario as a use-case for this. | |
| Jan 11, 2015 at 21:21 | history | answered | lawlist | CC BY-SA 3.0 |