From: Jean-Christophe Helary <brandelune@gmail.com>
To: Help Gnu Emacs mailing list <help-gnu-emacs@gnu.org>
Subject: Re: Help with PHP setup
Date: Sat, 21 Jul 2018 08:37:22 +0900 [thread overview]
Message-ID: <441C26FC-5F31-4C6E-A201-56FBAC5070D0@gmail.com> (raw)
In-Reply-To: <20180720165431792380014@bob.proulx.com>
> On Jul 21, 2018, at 8:10, Bob Proulx <bob@proulx.com> wrote:
>
> taariqq wrote:
>> I am trying to set emacs up so that I can use it for PHP development.
>
> I use emacs for PHP development.
>
>> What I am looking for:
>> a) A way to open the files, via my vagrant or lampp setup, in the browser.
>> b) Update the view in the browser as I save changes to the file in the editor.
>> c) Switch the view in the browser as I switch from file to file and continue to see the updates upon save.
>
> I hate to post something that says it can't be done. Because almost
> always when someone says something can't be done it actually can be
> done and other people prove that to be true. But reading the above
> makes me think that if someone does make that work that it would be
> "icky".
On a different thread I just asked how to call the file in the front buffer without explicitly referring to its name and Eli was nice enough to point at the obvious answer: buffer-file-name.
So we can actually have a function that replaces the path part of the file by a localhost url and run a command that opens that in the default browser.
Nothing icky about it, we just need the correct parameters to put that together.
Jean-Christophe
next prev parent reply other threads:[~2018-07-20 23:37 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-07-15 20:10 Help with PHP setup taariqq
2018-07-19 23:57 ` Jean-Christophe Helary
2018-07-20 2:32 ` Van L
2018-07-20 4:14 ` Jean-Christophe Helary
2018-07-20 5:47 ` Van L
2018-07-20 7:46 ` Jean-Christophe Helary
2018-07-20 7:52 ` Van L
2018-07-20 23:10 ` Bob Proulx
2018-07-20 23:37 ` Jean-Christophe Helary [this message]
2018-07-21 3:53 ` Bob Proulx
2018-07-21 13:17 ` Jean-Christophe Helary
2018-07-22 13:56 ` Jean-Christophe Helary
2018-07-22 15:20 ` Jean-Christophe Helary
2018-07-22 15:36 ` Noam Postavsky
2018-07-22 15:44 ` Jean-Christophe Helary
2018-07-22 15:53 ` Jean-Christophe Helary
[not found] ` <mailman.3937.1532129854.1292.help-gnu-emacs@gnu.org>
2018-07-21 3:38 ` Rusi
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=441C26FC-5F31-4C6E-A201-56FBAC5070D0@gmail.com \
--to=brandelune@gmail.com \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.