Mike Mattie | 1 Apr 2008 02:17
Picon

Re: tramp and ssh-agent / ssh-add

On Sun, 30 Mar 2008 16:25:12 +0200
"Roland Winkler" <Roland.Winkler <at> physik.uni-erlangen.de> wrote:

> On Sun Mar 30 2008 Michael Albinus wrote:
> > Tramp 2.0 does not offer such a hook. 
> 
> Would you be able to add one? I know at least one person who would
> greatly appreciate it.  :-)
> And if its purpose (one of its possible purposes) was properly
> documented, I could well imagine that more people would like to use
> it.
> 
> (I know that tramp is intended to provide a general scheme for file
> transfer. Are there other schemes besides beside ssh that use an
> agent like ssh? Gpg comes with an agent. But I guess that this is a
> different story.)

recent gpg-agents are compatible with ssh. I use gpg-agent for both
without problems.

> Thanks,
> 
> Roland
> 
> 
Mike Mattie | 1 Apr 2008 02:19
Picon

Re: tramp and ssh-agent / ssh-add

On Mon, 31 Mar 2008 23:04:13 +0200
Roland Winkler <Roland.Winkler <at> physik.uni-erlangen.de> wrote:

> Michael Albinus <michael.albinus <at> gmx.de> writes:
> > D'accord. But Roland has the use case to run Emacs on a remote
> > host. He even doesn't start ssh-agent there, which would do the
> > job.
> 
> Sorry for the confusion. Typically, I do something like
> 
> ssh -t winkler <at> foo.org ssh-agent emacs
> 
> So my remote session is only emacs under an ssh-agent. I would like
> to be able to run ssh-add from within the remote emacs iff ssh-add
> is needed because I want to establish a connection to yet some other
> host(s). (Of course, locally I am using shh-agent and ssh-add, too.
> Yet that helps me only for the ssh connections that I do starting
> from localhost.)

If I understand you correctly use agent forwarding. It's a sshd option.

> Roland
Eric M. Ludlam | 1 Apr 2008 04:32
Gravatar

Re: Ruby with Emacs


>>> "yanom  <at> linuxmail.org" <yanom <at> linuxmail.org> seems to think that:
>      I know that emacs can be used as an editor for Python and C++,
>with features like syntax highlighting and the like. But does Emacs do
>that for Ruby? When I opened a Ruby file (*.rb), it didn't show the
>syntax highlighting like it does for Python. Do I need to download
>some extra package to use Emacs as a Ruby editor? If so, where do I
>get it?

You can find ruby-mode in the misc/ directory of the Ruby source code
(www.ruby-lang.org).

Ruby is also supported in CEDET (cedet.sf.net) for use in ECB
(ecb.sf.net) though I do not know how much of the smart completion, or
other features from CEDET work.

Eric

Roland Winkler | 1 Apr 2008 05:15
Picon
Picon
Favicon

Re: tramp and ssh-agent / ssh-add

Mike Mattie <codermattie <at> gmail.com> writes:
> If I understand you correctly use agent forwarding. It's a sshd option.

Thanks, this might be, indeed, what I want, though I want to
understand better why the ssh man page says that agent forwarding
should be enabled with caution. How does agent forwarding compare
with running a second agent on the remote host?

Roland

rustom | 1 Apr 2008 06:08
Picon

Re: how to find out where a variable is changed?

On Mar 31, 10:27 pm, "Drew Adams" <drew.ad... <at> oracle.com> wrote:
>
> Tip: It's not a bad idea to use a separate `custom-file' (`C-h v custom-file'),
> so that Customize does not write to your .emacs file. Put this, for example, at
> the end of your .emacs: (load-file custom-file). That way, your `init-file' is
> for hand editing, and your `custom-file' is for automatic editing by Customize.

Thanks for this. I'll try it. But I am not so sure...

I use emacs for quite different purposes. I like to have the
customizations of these separately maintained.  As a programmer I
appreciate internal cleanliness more than external sugar-coating :-)

However this forces me to keep my c-mode and python and org and ecb
and god-knows-what-else customizations all together -- which I dont
like.

The problem as I see it is that the specification of initialization
in .emacs is given imperatively whereas it could be more declarative
and event-driven.

Assuming emacs is to .emacs as linux is to init, a possible
alternative that illustrates would be upstart -- see
https://wiki.ubuntu.com/ReplacementInit#head-4263a0dc03fdf9b46c2004f3e63d8033990db10a
http://upstart.ubuntu.com/index.html

rustom | 1 Apr 2008 06:35
Picon

Re: Ruby with Emacs

On Apr 1, 7:32 am, e... <at> siege-engine.com (Eric M. Ludlam) wrote:
> >>> "yanom  <at> linuxmail.org" <ya... <at> linuxmail.org> seems to think that:
> >      I know that emacs can be used as an editor for Python and C++,
> >with features like syntax highlighting and the like. But does Emacs do
> >that for Ruby? When I opened a Ruby file (*.rb), it didn't show the
> >syntax highlighting like it does for Python. Do I need to download
> >some extra package to use Emacs as a Ruby editor? If so, where do I
> >get it?
>
> You can find ruby-mode in the misc/ directory of the Ruby source code
> (www.ruby-lang.org).
>
> Ruby is also supported in CEDET (cedet.sf.net) for use in ECB
> (ecb.sf.net) though I do not know how much of the smart completion, or
> other features from CEDET work.
>
> Eric

Theres a good ruby/rails-oriented emacs demo at http://platypope.org/yada/emacs-demo/
Detailed breakup of setup at http://platypope.org/blog/2006/9/8/i-need-a-cool-european-accent

Glenn Morris | 1 Apr 2008 09:29
Picon
Favicon

Re: need help customizing font-lock colors in syntax highlighting (fortran)

bcbarnes <at> gmail.com wrote:

> In the old fortran mode filter, intrinsics such as mod, exp, and
> others would be highlighting in a different color (say, pink) than the
> control flow commands such as if/endif, do/enddo (which would be in
> purple). In the F90 mode, these commands are all highlighted in the
> same color. I find this to be undesirable, but I'm not sure how to
> change it.

I don't really know why it is like it is, but it is. Anyway, add to
~/.emacs:

(eval-after-load "f90"
  '(progn
     (setq f90-font-lock-keywords-3
      (append f90-font-lock-keywords-2
          (list
           f90-keywords-level-3-re
           f90-operators-re
           (list f90-procedures-re '(1 font-lock-builtin-face keep))
           "\\<real\\>"))
      f90-font-lock-keywords-4 (append f90-font-lock-keywords-3
          (list f90-hpf-keywords-re)))))

Peter Dyballa | 1 Apr 2008 10:59
Picon

Re: need help customizing font-lock colors in syntax highlighting (fortran)


Am 31.03.2008 um 21:41 schrieb bcbarnes:
> In the F90 mode, these commands are all highlighted in the
> same color.  I find this to be undesirable, but I'm not sure how to
> change it.  Poking around the f90.el source and google tells me it
> will involve something like set-face-foreground of a font-lock mode,
> but I don't know what to do.

In case you want to change the colour, you can start with C-u C-x =  
on a character in the unwanted face (font and colour). A *Help*  
buffer opens, allowing you to customise the settings in the  
"paragraph" where it describes the text properties.

In your case it will fail, because apparently different sorts of key  
words are mixed. So you would change the face for all of them again,  
for the whole set or "mixed" case.

--
Greetings

   Pete

A morning without coffee is like something without something else.

Dmitri Minaev | 1 Apr 2008 14:57
Picon

Bookmarks in non-file buffers?

Is there a way to save the current position (by placing a bookmark or
in any other way) in a buffer that is not associated with a file?
Namely, I'm interested in w3m buffers, pdftotext output and text files
extracted from zip archives in zip-archive mode. Of course, besides
the text position (line number) such bookmarks should contain the
information on how the text was produced.

--

-- 
With best regards,
Dmitri Minaev

Russian history blog: http://minaev.blogspot.com

Drew Adams | 1 Apr 2008 16:03
Picon
Favicon

RE: Bookmarks in non-file buffers?

> Is there a way to save the current position (by placing a bookmark or
> in any other way) in a buffer that is not associated with a file?
> Namely, I'm interested in w3m buffers, pdftotext output and text files
> extracted from zip archives in zip-archive mode. Of course, besides
> the text position (line number) such bookmarks should contain the
> information on how the text was produced.

http://www.emacswiki.org/cgi-bin/wiki/Icicles_-_Multiple_Regions should help,
but no info is saved about "how the text was produced".


Gmane