help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: Two questions....


From: Kai Großjohann
Subject: Re: Two questions....
Date: Mon, 02 Jun 2003 10:25:06 +0200
User-agent: Gnus/5.1003 (Gnus v5.10.3) Emacs/21.3.50 (gnu/linux)

Urban Gabor <gabaux@freemail.hu> writes:

> 1. I would like to set up an Emacs-variable, that stores the
> contents of an environment variable. The reason is, tha I
> want to insert the $(HOSTNAME) into edited files with one
> keystroke... 

(setq lisp-variable (getenv "HOSTNAME"))

But why not just call (getenv "HOSTNAME") in the function?  Or use
(system-name) which returns the host name?

> 2. I generaly do C/C++ and Perl editing with emacs. It would
> be very convenient to ha a generic macro, which insert an
> empty comment in the code.  My problem is, that the formar
> of the comment is dependig on the programming language
> (mode) you use. Is there a genereal solution?

I hit M-;.  (This is new in Emacs 21.)
-- 
This line is not blank.


reply via email to

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