Giter Club home page Giter Club logo

Comments (6)

jwiegley avatar jwiegley commented on June 2, 2024

emacswatcher [email protected] writes:

I've got my forked version building clean, but I am having trouble with
using the built resources in my .emacs itself. No matter where I load my
settings.el, it keeps getting clobbered by things in init.el. It currently
looks like this:

;; .emacs
;; set up load-path
(load-file "/home/emacs/load-path.el")
(require 'load-path)
(require 'autoloads)
(require 'cus-load)
(load-file "/home/emacs/settings.el")
(add-hook 'after-init-hook
`(lambda ()
(load-file "/home/emacs/init.el"))
t)

How far off am I from your intended usage?

Without knowing what your init.el is doing, I cannot say for sure. What
"things" are getting clobbered?

John

from dot-emacs.

emacswatcher avatar emacswatcher commented on June 2, 2024

Sorry, I should have been more specific. My init is copied from yours. I removed the Mac-specific code and added use-package for my packages and adjusted your keybindings to my liking. Other than that, it's your code.

The settings that are clobbered include:

Frame size
Faces
Fonts

I can see them being set as emacs starts up -- and then being overwritten back to defaults as it progresses. All are restored and behave normally if I M-x load-file setting.el after startup completes.

I've tried commenting out parts of init to look for a culprit with no success, so i thought I'd make sure I was using the resources correctly.

Any thoughts? (And thanks for making the code available!)

from dot-emacs.

jwiegley avatar jwiegley commented on June 2, 2024

emacswatcher [email protected] writes:

Any thoughts? (And thanks for making the code available!)

Hmm... I have no clue what might be causing that. I changed fonts myself in
an initial-frame-alist setting set in settings.el. I don't manually change
any fonts in init.el. Have you tried asking in #emacs on IRC?

John

from dot-emacs.

emacswatcher avatar emacswatcher commented on June 2, 2024

I agree, you don't. I searched for anything that might affect fonts or faces in init.el pretty thoroughly. The folks in #emacs told me to dust off the debugger documentation, which from their perspective seems reasonable. I was hoping I was making a simple error somewhere.

Just for clarity though, my guesses about how to use load-path, autoloads, cus-load, settings and init as shown above are substantially correct? That's the right order and nothing else goes in after-init-hook?

(Thanks again for taking the time to respond)

from dot-emacs.

jwiegley avatar jwiegley commented on June 2, 2024

emacswatcher [email protected] writes:

I agree, you don't. I searched for anything that might affect fonts or faces
in init.el pretty thoroughly. The folks in #emacs told me to dust off the
debugger documentation, which from their perspective seems reasonable. I was
hoping I was making a simple error somewhere.

Just for clarity though, my guesses about how to use load-path, autoloads,
cus-load, settings and init as shown above are substantially correct? That's
the right order and nothing else goes in after-init-hook?

My init.el loads load-path.el and settings.el. Why are you using a separate
.emacs? Emacs will load ~/.emacs.d/init.el automatically, if it exists (and
if there isn't a ~/.emacs).

John

from dot-emacs.

emacswatcher avatar emacswatcher commented on June 2, 2024

...and that made my problem vanish. I'm glad my suspicions were confirmed about the order of operations, even at the cost of revealing a mistake on my part.

Thanks a million.

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