gnu-arch-users
[Top][All Lists]
Advanced

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

Re: [Gnu-arch-users] arch-tag.el


From: Momchil Velikov
Subject: Re: [Gnu-arch-users] arch-tag.el
Date: 31 Jan 2004 15:24:54 +0200
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50

>>>>> "mtr" == mtr  <address@hidden> writes:

mtr> Momchil Velikov <address@hidden> writes:
>> My 2 cents ...
>> 
>> ;; Arch taglines
>> (defun make-tag ()
>> (interactive)
>> (insert "arch-tag: ")
>> (call-process "uuidgen" nil t))
>> 
>> (global-set-key [(control x) (a) (t)] 'make-tag)
>> 
>> (defun make-c-tag (n)
>> (insert "\n/*\n * Local variables:\n")
>> (if n (insert " * mode: C++\n") (insert " * mode: C\n"))
>> (insert " * indent-tabs-mode: nil\n * arch-tag: ")
>> (call-process "uuidgen" nil t)
>> (insert " * End:\n */\n"))
>> 
>> (global-set-key [(control x) (a) (c)]
>> '(lambda () (interactive) (make-c-tag nil)))
>> (global-set-key [(control x) (a) (x)]
>> '(lambda () (interactive) (make-c-tag t)))

mtr> As you might have guessed I'm not very fluent in Lisp, but I'm not
mtr> really sure what your argument is.

  Ugh, no argument, just sharing the thought that arch tagline fits
nicely (for me at least) into emacs variable settings

mtr> Aren't these 2 cents a bit restrictive (mostly targeted towards C/C++
mtr> files)?  Are your 2 cents meant as an improvement, or simply alternate
mtr> ways to do similar things?

  Apparently, it's an alternative way to do it, but it was not meant
to oppose your variant. Yes, ``make-c-tag'' is targeted to C/C++,
unlike ``make-tag''.

~velco




reply via email to

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