Questions tagged [css]
The css tag has no usage guidance.
25
questions
2
votes
1
answer
64
views
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-...
2
votes
1
answer
153
views
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.
...
2
votes
2
answers
197
views
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 ...
0
votes
0
answers
104
views
How to export org mode to html using Google Fonts & CSS?
I'm trying to change the headers and body fonts of HTML exported from org files. The idea is to have Bebas Neue for headers and Lato for body (both are available through Google fonts).
first I ...
0
votes
1
answer
197
views
Emacs company-css, where is the completion of css values?
Company-mode completion seems a little weak in emacs. Is it my configuration?
Property completion seems simple enough:
strong {
color: red; /* <= color is the property */
}
Where red is the ...
1
vote
0
answers
325
views
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 ...
1
vote
1
answer
708
views
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 ...
1
vote
1
answer
401
views
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 ...
1
vote
1
answer
247
views
Is it possible to disable wrapping of inline HTML with <p> tags?
If I have the following line in an org-mode file
@@html:<section>@@
If I export to HTML, it becomes:
<p>
<section><br>
</p>
This applies the CSS I have for my <p ...
1
vote
1
answer
97
views
How to defeat the fontification of colour literals in css-mode?
Emacs css-mode is fontifying my colour literals. For example:
This makes the text harder to read.
I tried to defeat it with the following in my .emacs.
(Note: this matches on ‘hsl’ because those ...
2
votes
1
answer
669
views
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, ...
0
votes
1
answer
168
views
How to set the background of color-hex-values with corresponding color in all modes (like in css-mode)?
In css-mode color strings get a background color corresponding to the respective color - like this (image):
How to achieve this behaviour in other modes?
1
vote
1
answer
45
views
have which-function-mode show @media query in css-mode?
I'd like to know which @media query I'm in (those blocks are several pages long, so can't see them in a screenful), without going 2 C-M-u C-u C-SPC etc. each time I want to check. There is which-...
1
vote
1
answer
248
views
Emmet expands css abbreviations as html
Everytime I expand an abbreviations on a css file it expands as html instead the proper css expansion.
This:
m10+p0
Should expand to this:
margin: 10px;
padding: 0px;
But instead expands to this:...
3
votes
2
answers
966
views
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 ...
1
vote
2
answers
183
views
CSS mode won't indent values across multiple lines
When a line in my CSS file appears to be too long (typically a property followed by a bunch of values), I want to split them in to several new lines like this:
But I have to manually enter spaces ...
1
vote
1
answer
490
views
How can I auto-insert semi-colon and colon after property autocompletion in css-mode?
Inside a CSS declaration, you got the property, the part before the colon, that can mostly always be auto-completed:
strong {
color: red; /* <= color is the property */
}
After hitting return ...
3
votes
0
answers
240
views
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 ...
2
votes
0
answers
214
views
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
└── ...
0
votes
0
answers
65
views
Css mode break indent region for javascript-mode
I have css-mode and javascript-mode and if I open css file the indent-region-function is set to css-indent-region which break javascript-mode indent region, how can I fix that? the workaround is to ...
5
votes
3
answers
662
views
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 <p>...
4
votes
1
answer
2k
views
Is it possible to fill Emacs' window background using CSS rules? [closed]
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 ...
8
votes
2
answers
3k
views
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 ...
0
votes
1
answer
313
views
Imenu Generic Regexp for CSS / LESS
I am trying to create a Regex for Imenu indexing for my CSS modes but I'm having trouble getting it exactly right as I'm no regular expression guru. Here's a snippet of LESS CSS I'm using (regexp-...
1
vote
0
answers
850
views
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.