Questions tagged [css]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
2
votes
1answer
42 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-...
1
vote
1answer
75 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. ...
0
votes
0answers
28 views

need help with font color in HTML export of code block in org file

I use code/source blocks in org mode to create HTML doc pages. I have my emacs default face as white foreground and black background. When I export to HTML, the background is black and most faces are ...
1
vote
2answers
88 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
0answers
70 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
0answers
18 views

CSS to export org to printable(A4papers) HTML with headers

I export org buffers to A4paper size pdf with header and footer customized as my letterhead using xelatex. It requires latex to be installed on each machine. Is it possible to achieve the same using ...
0
votes
1answer
150 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
0answers
228 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
1answer
585 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
1answer
360 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
1answer
229 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
1answer
90 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
1answer
540 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
1answer
138 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
1answer
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
1answer
238 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
2answers
898 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
2answers
177 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
1answer
471 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 ...
2
votes
0answers
208 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
0answers
206 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
0answers
59 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
3answers
619 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
1answer
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
2answers
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
1answer
301 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
0answers
838 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.