-
Notifications
You must be signed in to change notification settings - Fork 115
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Notional configuration to be more friendly for chemacs2 users #38
Notional configuration to be more friendly for chemacs2 users #38
Conversation
Im a Chemacs 2 user , ( but my emacs lisp knowledge is at 1% or lower) I have tried this and it doesn't work. but it may be because I have my Chemacs folders set up weird. When I run your code and query the variable "rational-config-path" (using C-h v) I get this |
Just Looked at my Folder structure, to see if I Should maybe change my folder structure. and noticed this code has inserted folders into my folder structure |
@daviwil , |
@harryfrogfather Thanks for testing. Here is the explanation: I set the
Having set the initial path (call it
The important part of that last bit is if the folder already exists. So, you might try making that folder in your profile (ie profile-dir/rational-emacs) and try again. Let me know because clearly I need to update the docs. As for your question on using git branches to test, you can just add my fork as another remote, and pull the branch from there:
Hope that helps. |
Thanks ,i will check this out when i get home, and respond then |
The earlier rewrite depended on things existing, which is fine if the user knows to create them, or if this is the second time emacs is run. However, for the first run, the wrong path was almost always created. The logic now just identifies the path, and only if it does not exist is it created.
@daviwil This PR should be ready to merge. Let me know if there are changes still needed. |
@jeffbowman by the way the value of the variable user-emacs-directory is |
I may be wrong , but is the issue in line 53 . it is adding rational-emacs to the user-emacs-directory and it is already in that variable?? |
@harryfrogfather I am assuming you have something like this in your emacs-profiles.el: So, I'm not exactly sure where things are going wrong for you. You should have something like this: in:
in
Does this help? (N.B. you might also read through #17 and see if there is anything there that might help) |
My emacs profile.el is exactly as you describe, but folder is as follows early-init.el i.e. no rational-emacs inside rational-emacs |
ok I'm watching @daviwil Chemacs vid to see where I have gone wrong. But Chemacs has been absolutely perfect for me like this?? |
Humm... well... shucks... I'm stumped. lol. Have you tried starting from a clean slate? (You shouldn't need to, but... dunno...). Something is gong wrong though, it's almost as if the code in early-init.el isn't running or something. Weird. |
I tried replicating as much of your environment as I can:
and I get the directory structure I described in #38 (comment). You could try:
and see if things work out? I'm stumped as to why it wouldn't have created the nested |
I did try an awful hack earlier |
Ah, well, if you commented out all the code, then I don't know what to tell you. The first rational-emacs directory is your chemacs profile (ie ~/emacs-configs/rational-emacs), so you would have made this directory manually likely by a git clone command. The sub-folder of that, also called Neither of those have anything to do with what emacs version you are running, though. Not sure what I can suggest... real head scratcher. This is the code that should be running to determine the value of the
And this is the code that should be running to see if the path exists, and if not, to create it:
If yours doesn't look like this, I cannot predict the results. Does this help? |
The hack I did was a clutching at straws to see if it would run early init after I had tried all your code. I'm going to set up the structure manually as you have suggested. ok having read your comments I see where the inner rational folder is coming from , I think I pulled early or something. ill try the manual and see. may have to come back tomorrow as its late here :) |
ok preliminary success . Doing all them manual moves seems to make it work . Iwill test more thoroughly and report back. I have no idea what went off. Maybe because I already had a config file in the outer rational folder???!?!?!?! I am clutching at straws again I know LOLz |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks a ton for putting this together, the extra documentation you added is super helpful! Just a couple of tweaks and we can get this merged.
* Fix spelling mistake again (d'oh!). * Add additional wording around the idea the personal configuration folder doesn't have to be called `rational-emacs' and how to put it where you want.
This is an attempt at making the early init use values more friendly for chemacs2 users. I don't use chemacs2, so maybe someone who does can review and/or test this approach.
Updated the README as well to explain usage.
Fix for #17