kimim / kimim-emacs

my emacs init configuration files
http://kimi.im/kimim-emacs
GNU General Public License v2.0
42 stars 6 forks source link

config in chemacs2 #1

Open DarkBuffalo opened 1 year ago

DarkBuffalo commented 1 year ago

Hello, First of all congratulations, your configuration is great. Is there a particular manipulation to integrate it with chemacs2?

kimim commented 1 year ago

That's a good idea. But I am not familiar with chemacs2. I'll need some time to learn.

kimim commented 1 year ago

could you have a try?

Clone to ~/.emacs.kimim

git clone https://github.com/kimim/kimim-emacs ~/.emacs.kimim

Add to chemacs2 profile

(("default" . ((user-emacs-directory . "~/.emacs.default")))
 ("kimim" . ((user-emacs-directory . "~/.emacs.kimim"))))

Start emacs with this config:

emacs --with-profile kimim
DarkBuffalo commented 1 year ago

Thanks @kimim here is the error encountered we would say that it does not take into account the .emacs ?

Debugger entered--Lisp error: (void-variable kimim/path-kimim-emacs)
  (concat kimim/path-kimim-emacs "README.org")
  (defvar readme-org (concat kimim/path-kimim-emacs "README.org"))
  load-with-code-conversion("/home/darkbuffalo/kimim-emacs/init.el" "/home/darkbuffalo/kimim-emacs/init.el" t t)
  load("/home/darkbuffalo/kimim-emacs/init.el" t t)
  (let ((init-file (expand-file-name "init.el" user-emacs-directory))) (setq package-user-dir (expand-file-name "elpa" user-emacs-directory)) (load init-file t t) (let ((chemacs-custom-file (chemacs-profile-get 'custom-file init-file))) (if (not custom-file) (progn (setq custom-file chemacs-custom-file) (if (equal custom-file init-file) nil (if (file-exists-p custom-file) nil (let (...) (save-current-buffer ... ...))) (load custom-file))))))
  chemacs-load-user-init()
  load-with-code-conversion("/home/darkbuffalo/.emacs.d/init.el" "/home/darkbuffalo/.emacs.d/init.el" t t)
  load("/home/darkbuffalo/.emacs.d/init" noerror nomessage)
  startup--load-user-init-file(#f(compiled-function () #<bytecode 0x1453e7b45ffc272a>) #f(compiled-function () #<bytecode -0x1f3c686ddc0cdc35>) t)
  command-line()
  normal-top-level()
kimim commented 1 year ago

I put the variables in kimim-emacs/early-init.el, if your chemacs2 do not have early-init.el in .emacs.d, you will not get variables configured.