Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [css]

The tag has no usage guidance.

1
vote
1answer
23 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 ...
1
vote
1answer
25 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
18 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
32 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-...
0
votes
1answer
71 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:...
1
vote
2answers
401 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
102 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
261 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
0answers
110 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
148 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
45 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
405 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
997 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 ...
7
votes
2answers
1k 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
240 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
730 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.