kotct / dot

A collaborative configuration for various tools.
MIT License
3 stars 2 forks source link

add interactive commands for updating kotct/dot and user configs #125

Closed samontea closed 4 years ago

samontea commented 5 years ago

Currently we only support updating user configs, and the user isn't capable of viewing the diff.

This patch allows for the user to update both user configs and kotct/dot. Furthermore it allows for the user to view the difference between HEAD and master before deciding whether to pull the update.

Note: this requires a repository that doesn't require authentication to run git fetch origin master or git pull origin master.

cg505 commented 5 years ago

fuck i wish i had time to actually review this but thanks kris for picking up my slack. there's some chance I can take a look this weekend but don't count on it lol

cg505 commented 4 years ago

things now fail on first startup with

Warning (initialization): An error occurred while loading ‘~/.emacs.d/init.el’:

Symbol's function definition is void: kotct/user-fetch-config

To ensure normal operation, you should investigate and remove the
cause of the error in your initialization file.  Start Emacs with
the ‘--debug-init’ option to view a complete error backtrace.

bc there is no autoload for kotct/user-fetch-config @samontea plz fix

kotct/user-fetch-config is called from kotct/user-load-username in user/user-config-system.el

cg505 commented 4 years ago

actually autoload is insufficient bc autoloads are loaded after all the hubs (which is where initial user setup happens) so it probably should just not be autolaod at all rip