Comments (6)
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.
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.
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.
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.
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.
...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)
- cyclic function indirection HOT 1
- Font in modeline HOT 4
- To use this on NixOS running system-wide, what should "NIX_MYENV_NAME" point to? HOT 4
- Do you have helm-projectile-switch-project bound? HOT 1
- No url found for submodule path 'lib/emacs-request/doc/eldomain' in .gitmodules HOT 1
- Dired+. Is it possible to change color of recent created/edit files/folders? HOT 1
- No submodule mapping found in .gitmodules for path 'site-lisp/yasnippet/snippets' HOT 1
- Mis-typed quote? HOT 1
- Why `company` :defer 5 ? HOT 1
- C-c y a is assigned to two different actions
- agenda background color according to file/category HOT 2
- opening links with special characters HOT 1
- `'after-init-hook` question HOT 1
- Which key is <C-m> in :bind keyword in multiple cursor HOT 2
- Are you still using the M-x customize interface? HOT 1
- Org-mode subrepo issue when pulling HOT 3
- newExtend the isolation-runner tests to cover the project API
- site-lisp/auto-overlays submodule not working anymore HOT 1
- bbdb-vcard-export record name change HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dot-emacs.