nano-emacs icon indicating copy to clipboard operation
nano-emacs copied to clipboard

Having nano-emacs around breaks building other modules

Open DamienCassou opened this issue 3 years ago • 2 comments

There are 2 problems in nano-emacs code base that breaks my borg-based setup:

  1. nano-defaults.el has top-level instructions with side effect: e.g., (setq-default shell-file-name "/bin/zsh"). This means that loading the file changes Emacs. I suggest wrapping these changes in a nano-defaults function.
  2. nano-defaults.el mixes general-purpose improvements and user-specific configuration (e.g., your email address, name and favorite shell). I suggest moving your configuration to a dedicated file outside of this repository.

My actual problem is that batch compiling my Emacs packages loads nano-defaults.el which changes the default shell to /bin/zsh (which I don't have) and this breaks compiling a subsequent Emacs package.

DamienCassou avatar May 31 '21 19:05 DamienCassou

Thanks for the report. I'm now trying to clean things up by splitting packages into individual repositories (nano-theme, modeline and splash so far) and I need to separate the actual layout from other settings.

rougier avatar Jun 07 '21 04:06 rougier

That's an excellent idea, thank you!!

By the way, thank you for your talk with https://inacheve-dimprimer.net/. That was inspiring and I'm trying to cleanup my Emacs!

DamienCassou avatar Jun 07 '21 07:06 DamienCassou