all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Yuri Khan <yuri.v.khan@gmail.com>
To: ckhan <charleykhan@gmail.com>
Cc: help-gnu-emacs <help-gnu-emacs@gnu.org>
Subject: Re: Elisp to open a line-wrapped URL
Date: Mon, 26 Feb 2018 12:02:21 +0700	[thread overview]
Message-ID: <CAP_d_8W_-Goz2PG_BejHgsT_7gNZnw4DKBu-3kRZ1jBWkCWyUQ@mail.gmail.com> (raw)
In-Reply-To: <f28fe82e-40df-4999-897c-70f00618f2a9@googlegroups.com>

On Sun, Feb 25, 2018 at 6:53 AM, ckhan <charleykhan@gmail.com> wrote:
> Say I like wrapping my code at 80cols.
> But say I also occasionally include URLs in comments .
>
> So I might wind up with something like this
>
>     # See also Google Drive generated py docs:
>     # https://developers.google.com/resources/api-libraries/
>     # documentation/drive/v2/python/latest/
>     # drive_v2.permissions.html#insert
>
> How do I teach emacs to open the URL that is near my cursor, even though it's split across lines with comment markers in between?

You might be able to solve this for yourself using Emacs.

What about other people who read your code: using other editors? …in a
mail client? …on the web?

Do them a favor and keep your URLs unwrapped.



      parent reply	other threads:[~2018-02-26  5:02 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-02-24 23:53 Elisp to open a line-wrapped URL ckhan
2018-02-25 15:07 ` Daniel Herzig
2018-02-25 20:01 ` Emanuel Berg
2018-02-25 22:40   ` Emanuel Berg
2018-02-25 22:43     ` Emanuel Berg
2018-02-26  5:02 ` Yuri Khan [this message]

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=CAP_d_8W_-Goz2PG_BejHgsT_7gNZnw4DKBu-3kRZ1jBWkCWyUQ@mail.gmail.com \
    --to=yuri.v.khan@gmail.com \
    --cc=charleykhan@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.