From: xavier at maillard.im (Xavier Maillard)
Subject: [Howm-eng 141] Re: Note file alias
Date: Thu, 22 Feb 2018 21:44:31 +0100 [thread overview]
Message-ID: <87woz4kb4g.fsf@maillard.im> (raw)
In-Reply-To: <87vaepdtiq.wl@id.domain>
Hi,
khi at users.sourceforge.jp writes:
> Hi.
>
> Do you mean something like this?
>
> ;;;;;;;;;;;;;;;;;;;;;;
> (defvar my-make-symlink-dir "~/foo/")
> (defun my-make-symlink ()
> "Make a symbolic link to the current buffer's file under
> `my-make-symlink-dir'."
> (interactive)
> (mkdir (expand-file-name my-make-symlink-dir) t)
> (let* ((f (buffer-file-name))
> (l (expand-file-name (file-name-nondirectory f)
> my-make-symlink-dir)))
> (make-symbolic-link f l)
> (message l)))
> ;;;;;;;;;;;;;;;;;;;;;;
Yeah, that is definetely what I am looking for with one exception:
I want to give a name to that alias and, maybe, I'd want it to be
included in the *howm* menu buffer.
I will try to modify your snippet.
--
Xavier
next prev parent reply other threads:[~2018-02-22 20:44 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-02-12 6:12 [Howm-eng 131] " xavier
2018-02-12 6:15 ` [Howm-eng 132] " xavier
2018-02-22 13:49 ` [Howm-eng 140] " khi
2018-02-22 20:44 ` xavier [this message]
2018-02-23 14:50 ` [Howm-eng 144] " khi
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=87woz4kb4g.fsf@maillard.im \
--to=howm-eng@lists.osdn.me \
/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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).