(no subject)


Wed Apr 6 15:55:02 EDT 2005


#! rnews 2135
Newsgroups: comp.lang.python
Path: news.xs4all.nl!newsspool.news.xs4all.nl!transit.news.xs4all.nl!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!nntp.abs.net!attws2!ip.att.net!NetNews1!xyzzy!nntp
From: Harry George <harry.g.george at boeing.com>
Subject: Re: Best editor?
X-Nntp-Posting-Host: cola2.ca.boeing.com
Content-Type: text/plain; charset=us-ascii
Message-ID: <xqx7jjfhf5r.fsf at cola2.ca.boeing.com>
User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3
Lines: 49
Sender: hgg9140 at cola2.ca.boeing.com
Organization: The Boeing Company
References: <1112725379.514651.66540 at l41g2000cwc.googlegroups.com> <xqxll7wougu.fsf at cola2.ca.boeing.com> <mailman.1437.1112801727.1799.python-list at python.org> <1112805967.208689.96100 at o13g2000cwo.googlegroups.com>
Mime-Version: 1.0
Date: Wed, 6 Apr 2005 19:35:28 GMT
Xref: news.xs4all.nl comp.lang.python:371180

"ChinStrap" <caneff at gmail.com> writes:

> Well I would be more than willing to learn Emacs if it does all these
> things you speak of, but really I can't get started because the default
> scheme is so friggin ugly it isn't funny.
> 
> Anyone want to send me a configuration setup with Python in mind, and
> decent colors?
> 

Set .emacs for:
;;; basic
(set-background-color "white")
(set-foreground-color "black")
(set-border-color "black")
(setq column-number-mode t)
(setq dired-ls-F-marks-symlinks t)

Do that prior to the python settings:
;---python---------------------------
(load "python-mode")
(setq auto-mode-alist
      (cons '("\\.py$" . python-mode) auto-mode-alist))
(setq interpreter-mode-alist
      (cons '("python" . python-mode)
            interpreter-mode-alist))
(autoload 'python-mode "python-mode" "Python editing mode." t)
(add-hook 'python-mode-hook 'turn-on-font-lock)
(setq python-mode-hook 'python-initialise)
(defun python-initialise ()
  (interactive)
  (setq default-tab-width 4)
  (setq indent-tabs-mode nil)
)


Then the default color scheme looks ok (at least to me).
The critical command is:
(add-hook 'python-mode-hook 'turn-on-font-lock)

If you comment that out (with a leading ";"), then font coloring is
turned off and you just have black on white.  You can learn the
language and the editor in that mode if necessary.


-- 
harry.g.george at boeing.com
6-6M21 BCA CompArch Design Engineering
Phone: (425) 294-4718
#! rnews 1727
Xref: xyzzy comp.security.ssh:39215
Newsgroups: comp.security.ssh
Path: xyzzy!nntp
From: "Mike Lowery" <michael.j.lowery at boeing.com>
Subject: Re: Ignoring known_hosts
X-Nntp-Posting-Host: e458612.nw.nos.boeing.com
Message-ID: <IEJIG6.L3M at news.boeing.com>
X-Mimeole: Produced By Microsoft MimeOLE V6.00.2800.1441
X-Priority: 3
X-Msmail-Priority: Normal
Lines: 33
Sender: nntp at news.boeing.com (Boeing NNTP News Access)
Organization: The Boeing Company
X-Newsreader: Microsoft Outlook Express 6.00.2800.1437
References: <IEA950.D3r at news.boeing.com> <m2psxdzzho.fsf at darwin.oankali.net> <IEHE76.3Dp at news.boeing.com> <m2br8szd6w.fsf at darwin.oankali.net>
Date: Wed, 6 Apr 2005 19:36:09 GMT


"Richard E. Silverman" <res at qoxp.net> wrote in message
news:m2br8szd6w.fsf at darwin.oankali.net...
> >>>>> "Mike" == Mike Lowery <michael.j.lowery at boeing.com> writes:
>
>     >> [~/.ssh/known_hosts]
>     >>
>     >> foo [foo's key ...]  bar [foo's key ...]
>     >>
>     >> [~/.ssh/config]
>     >>
>     >> host foo hostname <foo's name or address> hostkeyalias foo
>     >>
>     >> host bar hostname <bar's name or address> hostkeyalias bar
>     >>
>     >> ... and use "ssh {foo|bar}".
>
>     Mike> This might work
>
> It will work.
>
>     Mike> but again, it requires me manually adding each server to the
>     Mike> config file which I'm hoping to avoid since there are many.
>
> How?  If your machines are not uniquely identified to the client by their
> names or addresses, then you must indicate the distinctions yourself by
> configuration.

How?  Tell SSH to stop checking for this potential "problem." I don't care that
the key doesn't match what it was last time, just give me access!  Apparently
that option doesn't exist.





More information about the Python-list mailing list