Questions tagged [css]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
1 answer
18 views

How to make `org-html-htmlize-generate-css` work?

Using GNU Emacs 28.1 on Manjaro Linux, I open with emacs -Q -l custom-init.el with the following minimal init file: custom-init.el (require 'package) (setq package-user-dir (expand-file-name "./...
0 votes
0 answers
5 views

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 ...
0 votes
1 answer
16 views

Source block html export show block on hover

I am working on a document that has multiple questions and answers to that question in a source block. Simplified example is as follows: Q1. (a+b)^2 #+begin_center a^2 + 2ab + b^2 #+end_center ...
  • 365
2 votes
1 answer
102 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-...
  • 3,995
2 votes
1 answer
236 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
291 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
120 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
219 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
388 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 ...
2 votes
1 answer
777 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 ...
  • 121
1 vote
1 answer
421 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
258 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 ...
  • 281
1 vote
1 answer
99 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
714 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, ...
  • 63
0 votes
1 answer
187 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?
  • 397
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,055
1 vote
1 answer
263 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:...
  • 568
3 votes
2 answers
996 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 ...
  • 143
1 vote
2 answers
184 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 ...
  • 13
1 vote
1 answer
503 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 ...
  • 1,485
3 votes
0 answers
256 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
215 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 └── ...
  • 429
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 ...
  • 661
5 votes
3 answers
682 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
314 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,354
1 vote
0 answers
855 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.
  • 71