How to Reload files upon save when using swank+leiningen+emacs

后端 未结 3 964
借酒劲吻你
借酒劲吻你 2020-12-14 17:47

I\'m looking to set up slime+lein-swank to reload source files referenced from the repl when i save the file. currently i do this:

  • edit file
  • save file
3条回答
  •  感情败类
    2020-12-14 18:50

    You can use SLIME's C-c C-k before switching to the REPL, for slime-compile-and-load-file. It will prompt you to save the file if you haven't already. When it's done, the things which you've redefined should be available at the SLIME REPL in their new versions. Then you could use C-c C-z to bring up the REPL (close it with C-x 0 when you don't need it anymore).

提交回复
热议问题