corgi-emacs / corgi

Unbundled Emacs configuration aimed at Clojure developers
181 stars 18 forks source link

Hardcoded path to `leader-bindings.el` #2

Closed oxalorg closed 3 years ago

oxalorg commented 3 years ago

In the evil-multi-leader.el file we have this line

(with-current-buffer (find-file-noselect "/home/arne/emacs-profiles/lesser-evil/leader-bindings.el")

which should ideally be:

(with-current-buffer (find-file-noselect file-name)

Just trying to go through the code to understand it a bit better, I'm not yet sure how this function is being used though!

plexus commented 3 years ago

Thanks, I fixed it, it should just use the function argument there

(defun eml/read-file (file-name)
  (with-current-buffer (find-file-noselect file-name)
    (auto-revert-mode 1)
    (goto-char (point-min))
    (read (current-buffer))))

You can set eml/binding-files in your user config if you want to change the bindings