From: khi at users.sourceforge.jp (khi at users.sourceforge.jp)
Subject: [Howm-eng 140] Re: Note file alias
Date: Thu, 22 Feb 2018 22:49:01 +0900 [thread overview]
Message-ID: <87vaepdtiq.wl@id.domain> (raw)
In-Reply-To: <87d11asphu.fsf@smugg>
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)))
;;;;;;;;;;;;;;;;;;;;;;
--
khi at users.osdn.me
next prev parent reply other threads:[~2018-02-22 13:49 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 ` khi [this message]
2018-02-22 20:44 ` [Howm-eng 141] " xavier
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=87vaepdtiq.wl@id.domain \
--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).