abo-abo / oremacs

My Emacs config
https://oremacs.com/
296 stars 33 forks source link

HI some problem with your generate autoload function #29

Closed glepnir closed 4 years ago

glepnir commented 4 years ago

Hi @abo-abo I found your generate function ,i found it will generate two files autoload.el and autoload.el~ when i used . Why i got this file autoload.el~, new come to emacs from vim.thanks for your help!

(defun boot:generate-supremacs-autoloads ()
  "Genreate supremacs autoload file"
  (interactive)
  (let ((generated-autoload-file (concat jorm-local-dir "autoload.el")))
    (when (not (file-exists-p generated-autoload-file))
      (with-current-buffer (find-file-noselect generated-autoload-file)
        (insert ";;")
        (save-buffer)))
    (mapc #'update-directory-autoloads '("autoload"))))

image

glepnir commented 4 years ago

solved