GithubHelp home page GithubHelp logo

Comments (5)

jeremy-compostella avatar jeremy-compostella commented on August 22, 2024

Hi,

I you read the documentation, you would see that you can customize the org-msg-enforce-css variable to change the style. You could just create you own, copy the default and make some changes, or just make some changes to the current configuration after the org-msg module has been loaded from your own configuration, see below example:

(eval-after-load 'org-msg
  `(progn
     ;; Set headline level 1, 2 and 3 black
     (dolist (tag '(h1 h2 h3))
       (let ((cur (cdr (alist-get tag org-msg-enforce-css))))
	 (setcar cur (assq-delete-all 'color (car cur)))
	 (push (cons 'color "black") (cadr (alist-get tag org-msg-enforce-css)))))
     ;; Remove underline on headline level 3
     (let ((cur (cdr (alist-get 'h3 org-msg-enforce-css))))
       (setcar cur (assq-delete-all 'text-decoration (car cur))))))

Regards,
Jeremy

from org-msg.

jeremy-compostella avatar jeremy-compostella commented on August 22, 2024

Can I close it now ?

from org-msg.

WhatDothLife avatar WhatDothLife commented on August 22, 2024

Yes, I read the documentation but found the modification of the variable to difficult to understand. I'll reopen it, if there are any more questions. Thanks.

from org-msg.

runekaagaard avatar runekaagaard commented on August 22, 2024

I've had good results for both outlook and gmail simply using no custom styles at all. I have this in my init.el:

(setq org-msg-enforce-css "/path/to/an/empty/file.css")

from org-msg.

jeremy-compostella avatar jeremy-compostella commented on August 22, 2024

Good. Note that you will likely start running into some formatting issue with such a solution when you will reply to emails making strong use of CSS.

from org-msg.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.