# Tag Info

17

These are indeed escape sequences which the terminal should interpret as orders to change the text color. Normally they shouldn't be used when the compiler is invoked from Emacs (the terminal type should be set to dumb, which should cause the compiler to refrain from using any escape sequence). There may be something wrong in your configuration that causes ...

11

I think this will do it for Emacs versions < 27.1 (require 'python) (setq python-font-lock-keywords (append python-font-lock-keywords '(;; this is the full string. ;; group 1 is the quote type and a closing quote is matched ;; group 2 is the string part ("f\$$['\"]\\{1,3\\}\$$\$$.+?\$$\\1" ;;...

10

Update: load-theme-buffer-local.el (GitHub repository) is supposed to do what I tried to do, but do it the right way. To use it with eww, install it and add (add-hook 'eww-mode-hook (lambda () (load-theme-buffer-local 'tango (current-buffer)))) to your init file. PS: I cannot test this approach myself, so let me know if this works. Original ...

6

Yes, you can do what you want with #+ATTR_HTML. However, your HTML is incorrect. If you look at the output you will see <pre class="example" background-color="#eff0f1;"> but there is no background-color attribute in HTML. Instead, use this: #+ATTR_HTML: :style background-color:#eff0f1; #+BEGIN_EXAMPLE hello world! #+END_EXAMPLE This will generate <...

6

Here are a few minor modes that look like they could be tweaked to meet the needs of the original poster: http://www.github.com/skeeto/visual-indentation-mode http://www.github.com/antonj/Highlight-Indentation-for-Emacs http://www.github.com/zk-phi/indent-guide [No screenshot due to no *.gif support when adding links.] There are also a few minor modes ...

4

I recomend you try nhexl-mode (install it from M-x package-install or M-x package-list). It does do what you want. This said, hexl-mode almost does what you want, since it places the cursor right in front of the byte you want highlighted.

4

You can use library Highlight to highlight a region using an overlay or text properties -- in particular, property face. To highlight the background, use a face that uses attribute background but not foreground. If you use text property face then you can also copy properties from some text and paste them to other text. So if your definition changes and ...

4

That's exactly what you get with library cursor-chg.el. Just turn on minor mode change-cursor-mode, and leave option curchg-change-cursor-on-input-method-flag with its default value of t. The cursor color when an input method is used is controlled by option curchg-input-method-cursor-color (default value "Orange"). (If you do not also want the cursor ...

3

You can try this: #+HTML_HEAD: <style type="text/css">.example {background-color: #eff0f1; color: #ff0000;}</style>

3

What you're looking for is the region face. Put this in your .emacs file and change #666 to any color you want: (set-face-attribute 'region nil :background "#666") You could also then change the font color to make it more readable. E.g. to white (set-face-attribute 'region nil :background "#666" :foreground "#ffffff") Sources: This Question answered by ...

2

Found my answer here. Basically, executing list-faces-display gives me a list of all variable faces. The ones I was looking for begin with tty-menu-*

2

I know one interesting solution, emacs-tree-sitter which is the Emacs implementation of the general parser tree-sitter used in Atom. It's quite easy to use and work out of the box, this is how it look the function with the modus-vivendi theme: As tree-sitter inherit from the font-lock default variables (define by the Dracula theme) for Emacs basic, stuff ...

1

It's auto-complete package. Completion candidates colors can be changed by customizing ac-completion-face, ac-candidate-face, ac-candidate-mouse-face and ac-selection-face. That window with additional candidate info can be changed by customizing popup-tip-face.

1

OK… wasn't aware of rainbow-mode, wich does exactly, what I intended. Of cource I found it after I posted question here ^^. So the solution is: M-x package-install RET rainbow-mode RET To answer my question completely and enable it in all modes: I added (define-globalized-minor-mode global-rainbow-mode rainbow-mode (lambda () (rainbow-mode 1))) ...

1

You don't say what "this kind of block" means, or how your "blocks" were caused/created. Anyway, it sounds like you are asking how to know which face is used for that text with the yellow background, so you can use M-x customize-face to change its appearance. The answer to that is to put the cursor somewhere on that highlighted text and use C-u C-x =. The ...

1

gotham-theme is my port of a Vim theme. In the Vim world there's three different kinds of color palettes used for themes: The original palette with an arbitrary amount of colors with the shades as the designer of the theme picked them. This one will only work correctly in a GUI instance (or if you're extra lucky and have 24-bit color support in both your ...

1

By default, Emacs opens files ending in .h in C mode. If you would like to open them in C++ (where private and public will be highlighted as keywords), you can add the following to your init file: (push '("\\.h\\'" . c++-mode) auto-mode-alist) Or (even better): (add-to-list 'auto-mode-alist '("\\.h\\'" . c++-mode))

1

Alternatively, if you are comfortable with reading LaTeX markup, you might prefer to configure wikipedia to not use images for rendering math. This requires you to create a wikipedia account, then go to Preferences->Appearance->Math to select an option. I would recommend "Client-side MathJax", since this will render prettily in a browser that understands ...

Only top voted, non community-wiki answers of a minimum length are eligible