Giter Site home page Giter Site logo

Comments (6)

fnt400 avatar fnt400 commented on July 19, 2024 1

Yes!!! That did the trick! I was using the function set-face-attribute, instead of custom-set-faces.
Thank you very much!!

from crafted-emacs.

jeffbowman avatar jeffbowman commented on July 19, 2024

@fnt400 Try setting those in the rational-emacs/early-config.el file. See if that helps.

In general, setting fonts and frame based configuration in early-init (or early-config.el in the case of rational-emacs), is a better idea because they get set before the frame exists so the springy resizing thing does not happen when the frame becomes visible. In daemon mode, that should help with getting the emacs client frame looking the way you want.

from crafted-emacs.

fnt400 avatar fnt400 commented on July 19, 2024

@fnt400 Try setting those in the rational-emacs/early-config.el file. See if that helps.
thankyou for the advice. I tried but it didn't work. The font do not change when starting as a daemon.
The theme setting, instead, gives an error because it can't find the theme itself (probably it can be fixed adding a load-path but I didn't try)

from crafted-emacs.

jeffbowman avatar jeffbowman commented on July 19, 2024

@fnt400 The reason you are seeing the blue color has to do with the default configuration in the rational-emacs early-init.el file, specifically these 2 lines:

https://github.com/SystemCrafters/rational-emacs/blob/master/early-init.el#L29-L30

which set the default foreground and background colors.

In your rational-config-path/early-config.el you need to add this configuration to get rid of it:

(setf default-frame-alist (assq-delete-all 'background-color default-frame-alist))
(setf default-frame-alist (assq-delete-all 'foreground-color default-frame-alist))

Then your code to load a theme like this (load-theme 'modus-vivendi t) (probably in your rational-config-path/config.el file) should work.

from crafted-emacs.

fnt400 avatar fnt400 commented on July 19, 2024

Great! Now the theme starts correctly! Unfortunately the font setting doesn't. I still have to set it manually when I create the first frame (but that's not a big problem).

from crafted-emacs.

jeffbowman avatar jeffbowman commented on July 19, 2024

This is what my early-config.el file has. the font gets set correctly as does the theme. Does this help you?

https://gist.github.com/jeffbowman/7d0e20df9321aaa28468c2a32503d322

from crafted-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.