Shakthi Kannan <shakthim...@gmail.com> writes: > Hi Joram, > > --- On Wed, Sep 9, 2015 at 2:17 AM, Joram Schrijver <i...@joram.io> wrote: > | The reason prefixing your *emacs-command* with `bash -c` doesn't work is > | probably that the shell that is then started is not interactive. > | Non-interactive shells don't source `~/.profile`. Adding `-i` to the > | bash command should turn it into an interactive shell, making it source > | `~/.profile`. > \-- > > That did it. Using `-i` worked. > > Thanks for all your replies! > > SK
Thanks a lot for these ideas. I use emacs since about 20 years. Today I changed the way I start emacs: (defcommand emacs () () "run emacs" (run-or-raise "zsh -ic 'emacsclient -c -a \"\"'" '(:instance "^emacs$"))) Up to now I used: ;; (defcommand emacs () () ;; "run emacs" ;; (run-or-raise "emacs -T emacs" '(:instance "^emacs$"))) I use zsh. My new command starts an emacs daemon that is initialized with my zsh setup. run-or-raise is used to switch to an already available emacs frame when available. Just wanted to share my cool new setup. Stefan. _______________________________________________ Stumpwm-devel mailing list Stumpwm-devel@nongnu.org https://lists.nongnu.org/mailman/listinfo/stumpwm-devel