stumpwm-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [STUMP] Sourcing ~/.bashrc when starting Emacs from stumpwm


From: Stefan Reichör
Subject: Re: [STUMP] Sourcing ~/.bashrc when starting Emacs from stumpwm
Date: Wed, 09 Sep 2015 22:46:30 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux)

Shakthi Kannan <address@hidden> writes:

> Hi Joram,
>
> --- On Wed, Sep 9, 2015 at 2:17 AM, Joram Schrijver <address@hidden> 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.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]