GithubHelp home page GithubHelp logo

How to further customize? about zenburn-emacs HOT 2 OPEN

bbatsov avatar bbatsov commented on July 1, 2024
How to further customize?

from zenburn-emacs.

Comments (2)

dabrahams avatar dabrahams commented on July 1, 2024 1

There are two issues here. First, problems with :inherit aside, I'd like to know what approach you recommend for customizing a theme like zenburn.

Second, are you sure there's a problem with :inherit? It doesn't look like that bug report is very well-understood still. Nobody provided a simple test case and I can't reproduce the behavior. For example, loading the following with emacs -Q -lthis-file seems to work perfectly.

;; define a couple of faces to be used in the theme
(defface face1
    '((t :background "pink"))
    "first test face")
(defface face2
    '((t :background "yellow"))
    "second test face")

;; simulate (load 'theme1)
(deftheme theme1
  "1st test theme")
(custom-theme-set-faces
 'theme1
 '(face2 ((t (:slant italic :inherit (face1)))))
 '(face3 ((t (:background "yellow"))))
 '(face4 ((t (:inherit (face3))))))
(provide-theme 'theme1)
;; done loading theme1

;; define some more faces used in the theme
(defface face3
    '((t :background "pink"))
    "3rd test face")
(defface face4
    '((t :slant italic))
    "4th test face")

;; inspect the faces
(setq inhibit-startup-screen t)
(customize-apropos-faces "^face[0-9]")

It seems to me that if there were an issue here it should be reproducible with (at least a simple variation on) this code.

from zenburn-emacs.

bbatsov avatar bbatsov commented on July 1, 2024

Unfortunately there is something wrong with faces inheritance in customization themes (there are a couple of issues in the Emacs tracker on the subject) - that's why I've mostly removed inheritance from the new version of the theme. Check out this discussion http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8454

from zenburn-emacs.

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.