Skip to main content

Questions tagged [css]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
2 votes
1 answer
53 views

Embed CSS file when org-exporting

I have a custom css file I include when exporting org files to HTML, by linking to it in the head section, like so: (setq org-html-head "<!-- Site css --> <link rel=\"stylesheet\&...
ch-pub's user avatar
  • 242
1 vote
0 answers
60 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 ...
Michel Lecomte's user avatar
0 votes
1 answer
39 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 ...
jimmu's user avatar
  • 395
3 votes
1 answer
618 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-...
Lorem Ipsum's user avatar
  • 4,527
4 votes
1 answer
737 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. ...
Bear Bile Farming is Torture's user avatar
3 votes
2 answers
711 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 ...
crocefisso's user avatar
  • 1,363
0 votes
0 answers
181 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 ...
crocefisso's user avatar
  • 1,363
0 votes
1 answer
325 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 ...
F. Certainly.'s user avatar
1 vote
0 answers
808 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 ...
Waldemar22's user avatar
2 votes
1 answer
1k 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 ...
Wirius's user avatar
  • 123
2 votes
1 answer
534 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 ...
Ian Mackinnon's user avatar
1 vote
1 answer
300 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 ...
dwrz's user avatar
  • 281
1 vote
1 answer
110 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 ...
Michael Allan's user avatar
2 votes
1 answer
938 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, ...
urely's user avatar
  • 63
0 votes
1 answer
224 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?
kai-dj's user avatar
  • 427
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-...
unhammer's user avatar
  • 1,169
1 vote
1 answer
308 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:...
Fabman's user avatar
  • 588
4 votes
2 answers
1k 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 ...
Dellowar's user avatar
  • 153
1 vote
2 answers
198 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 ...
nerrons's user avatar
  • 13
1 vote
1 answer
583 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 ...
smonff's user avatar
  • 1,589
3 votes
0 answers
291 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 ...
H. Shindoh's user avatar
2 votes
0 answers
245 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 └── ...
Sam Estep's user avatar
  • 459
0 votes
0 answers
67 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 ...
jcubic's user avatar
  • 763
5 votes
3 answers
776 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>...
incandescentman's user avatar
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 ...
Geradlus_RU's user avatar
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 ...
Wilfred Hughes's user avatar
1 vote
1 answer
346 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-...
waymondo's user avatar
  • 1,394
1 vote
0 answers
879 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.
paula's user avatar
  • 71