Questions tagged [css]
27 questions
8
votes
2 answers
Is it possible to start company completion without a prefix?
Autocompletion is particularly useful in writing CSS, to see the available options for a given property. Company provides company-minimum-prefix-length to control how many characters I have to type before it starts offering options.
However, I want…

Wilfred Hughes
- 6,890
- 2
- 29
- 59
5
votes
3 answers
how to use CSS to change styling of elements in org-mime emails?
The org-mime page describes how to use org-mime-html-hook to style HTML email by inserting inline CSS. I used this method to successfully change the styling of my body paragraphs by targeting
tags: (add-hook 'org-mime-html-hook (lambda () …

incandescentman
- 4,111
- 16
- 53
4
votes
1 answer
Is it possible to fill Emacs' window background using CSS rules?
Is there some way to fill background of Emacs' windows (not frames) using some CSS rules rather than one solid color?
Solid color fill is very unnatural for eyes (at least of mine). There is an amazing cicada principle1 in the wild, and it will be…

Geradlus_RU
- 625
- 7
- 17
3
votes
1 answer
Add CSS class or id tag to individual src blocks
I want to style some HTML source block exports differently than others.
Say I want the "Hi" block to have a green background and "Bye" to be red:
#+COMMENT: -*- org-html-htmlize-output-type: css -*-
#+begin_src…

Lorem Ipsum
- 4,327
- 2
- 14
- 35
3
votes
1 answer
How to change CSS files to indent to 2 spaces?
I have only installed emacs straight out of the box. I have not installed anything else:
GNU Emacs 26.3
Copyright (C) 2019 Free Software Foundation, Inc.
GNU Emacs comes with ABSOLUTELY NO WARRANTY.
You may redistribute copies of GNU Emacs
under the…
3
votes
2 answers
How to export an html file with a foldable & dynamic TOC from an org file?
When HTML pages are extended I find it quite useful to have a TOC (table of Content) available all along with your scrolling.
A good example of an implementation of such a functionality is the Worg webpages (here is an example), which are generated…

crocefisso
- 1,141
- 7
- 15
3
votes
2 answers
css-mode: use tabs and not spaces
How do I make it so tabs are used instead of spaces when TAB is pressed? I've tried setting indent-tabs-mode to t but no dice.
On my other modes, such as php-mode and c-mode, tabs are inserted. CSS mode seems to be ignoring.
God I hate spaces so…

Dellowar
- 143
- 7
3
votes
0 answers
How to change the line height in the menu
Here "menu" means something which appears when you hit F10. (Not the menubar.)
Because my display is small, several options are hidden below. (See the following image. You can not see "Quit".)
This is sometimes annoying me, so I would like to make…

H. Shindoh
- 141
- 3
2
votes
1 answer
HTML export with Org mode : all CSS specifications in one external file
I am using org mode to write my personnal website. I use the workflow described in the documentation (cf. https://orgmode.org/worg/org-tutorials/org-publish-html-tutorial.html) and I therefore have a converter.el file consisting, as in the link…

Wirius
- 121
- 1
2
votes
1 answer
Display and convert colors
I don't know if there's a package to show the colors according to their value. I know it's xah-css-mode and rainbow-mode.
rainbow-mode only shows hex values and by name.
xah-css-mode shows the above, hsl and supposedly rgb (it seems to have an error…

urely
- 63
- 3
2
votes
0 answers
How can I use an absolute path to my CSS with impatient-mode?
I installed impatient-mode through MELPA, and I'm having some trouble with the CSS functionality.
If I create a directory called temp with an HTML file and a CSS file inside:
temp
├── index.html
└── stylesheet.css
where index.html looks something…

Sam Estep
- 449
- 5
- 20
1
vote
0 answers
custom class css autocomplete
How can I autocomplete in a html file in a tag using the "class=" attribute, the css class definition writted in my css file ?
Say that I have test.html with style.css. In style.css I defined
.banner-heading {..}
.banner-sub-heading {..}
When in…

Michel Lecomte
- 169
- 4
1
vote
0 answers
syntax highlighting and auto-completion for CSS?
How can I set up css-mode for syntax highlighting and autocompletion? I installed web-mode, but it doesn't seem to be giving me any of those features.

paula
- 71
- 1
- 3
1
vote
0 answers
CSS Stylesheets on EWW
Began here on using eww as web browser in Emacs, but felt that it misses CSS stylish, even loading simple HTML and CSS only.
Already managed to repair libxml2 error before running it, but now would like to load CSS stylish, like divisions, body,…

Waldemar22
- 71
- 5
1
vote
1 answer
Is it possible to disable color highlighting in css-mode?
I'm using Emacs 26.1 in the terminal (emacs -nw).
When using css-mode, strings representing colors seem to be automatically highlighted. I don't find this feature useful, and further, the colors chosen often make the text illegible.
Is there a way…

Ian Mackinnon
- 239
- 1
- 7