Git Product home page Git Product logo

Comments (2)

rothmichaels avatar rothmichaels commented on May 26, 2024

That is because of the following code in foundation-pack/config/cosmetic.el:

(cond
 ((and (window-system) (eq system-type 'darwin))
  (add-to-list 'default-frame-alist '(font . "Menlo-12"))))

I was not able to figure out why, but it seems like because of this code, using set-face-attribute to change the font was only working after startup. Because of this—and inspired by cassiel, I was using some wrapper functions to change color themes and change the font at the same time (and do some other customization). For example:

(defun cyberpunk ()
 (interactive)
 (color-theme-cyberpunk)
 (set-face-background 'hl-line "grey13")
 (set-face-attribute 'default nil :font "Courier 14"))

I recently found the code setting the font in foundation-pack/config/cosmetic.el and figured out that you can override it with some code in your own live-pack or .emacs-live.el with some code like this:

(remove-if (lambda (x)
             (eq 'font (car x)))
           default-frame-alist)
(cond
 ((and (window-system) (eq system-type 'darwin))
  (add-to-list 'default-frame-alist '(font . "Courier 14"))))

from emacs-live.

thmzlt avatar thmzlt commented on May 26, 2024

@rothmichaels, thanks! It works just fine.

from emacs-live.

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.