font-lock Questions
5
Solved
How do you change the default face which Emacs uses to style text on a per-mode basis?
For example, say that I am already happy with the face customizations that I have, which include a default fi...
Promiscuity asked 10/2, 2009 at 21:33
2
Solved
If I have just
(set-face-foreground 'font-lock-comment-face "red")
(set-face-foreground 'font-lock-string-face "green")
in my .emacs, emacs uses the same font-lock for Python strings and for Pyt...
2
Solved
I was trying to port over the "pretty entities" behaviour from org-mode to latex-mode using the Emacs builtin prettify-symbols-mode. This mode uses font-lock-mode to display character sequences in ...
2
Solved
Following code will visually replace "hello world" with "HW" by passing a progn form to font lock keywords.
(font-lock-add-keywords
nil '(("\\(hello world\\)"
(0 (progn (put-text-property (match...
Brenneman asked 2/9, 2013 at 9:50
1
Solved
How can I debug font lock keywords I write? For example
(progn
(font-lock-add-keywords
nil
'(
;; ("hi1" . 'success)
("hi2" . (intern (concat "warn" "ing")))
))
(font-lock-fontify-buffer))
...
Deposit asked 2/9, 2013 at 9:8
2
Solved
How to highlight all the function's name in Emacs' lisp-mode? I want them bolded.
In other words, all the words from ( to the first space. Don't care exceptions like (a . b)
Just like GitHub:
Elegist asked 17/8, 2013 at 13:25
3
Some background, I'm comfortable with Emacs Lisp, and have written lots of lines of it. However I've never written a major mode, so I'm fairly new to how the font-locking mechanism works.
For my c...
2
Solved
Basically, I'm trying to syntax highlight the following piece of coffeescript code the way I want it. Explanation of the syntax of coffeescript functions can be found here.
nameHere = (tstamp, moo...
Gothicize asked 3/2, 2013 at 0:36
2
I'm using Emacs since a long time and I've customized it quite a lot. I've even written simple ELisp functions and now I'm starting to use macros more and more. I'm not anywhere near a knowledgable...
Foran asked 19/3, 2012 at 17:48
1
What is the root mode I need to hook to highlight TODOs in Ruby, Lisp, and C-like languages. I tried the following, but it doesn't highlight TODO in Ruby or Lisp:
(defun highlight-todos (font-lock...
Ulterior asked 18/12, 2011 at 11:9
3
I'm trying to switch to Emacs from Vim for a few months and faced the strange problem:
when font-lock is on, scrolling in emacs becomes very slow. Example of relevant part of config:
(require 'vim...
Gird asked 3/10, 2010 at 9:25
1
Solved
Admittedly, this is something of a first world problem, but I'm sort of picky about the appearance of the display, and I find it really annoying when some mode sets a new font size, family, bold/it...
Den asked 22/10, 2011 at 15:24
1
Solved
I want to display a colored string of text in the minibuffer, but when I use the 'message' function, the text-properties of are stripped.
Thiazole asked 30/4, 2010 at 5:21
3
Solved
I am doing small modification to SLIME, so that I can get all currently loaded symbols from Lisp, analyze them and make font-lock fontify them.
I managed to do all these steps, but I have a small ...
Tetanus asked 16/9, 2009 at 9:7
1
© 2022 - 2024 — McMap. All rights reserved.