unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* TRAMP and faces
@ 2009-12-03 23:12 Barrie
  2009-12-04  0:24 ` Barrie
                   ` (3 more replies)
  0 siblings, 4 replies; 7+ messages in thread
From: Barrie @ 2009-12-03 23:12 UTC (permalink / raw)
  To: help-gnu-emacs

Is there a way to automatically change the colors when editing a file in 
tramp mode???  

TIA,
Barrie


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: TRAMP and faces
  2009-12-03 23:12 TRAMP and faces Barrie
@ 2009-12-04  0:24 ` Barrie
  2009-12-04  8:55 ` Barrie
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 7+ messages in thread
From: Barrie @ 2009-12-04  0:24 UTC (permalink / raw)
  To: help-gnu-emacs

On Thu, 03 Dec 2009 23:12:56 +0000, Barrie wrote:

> 
> ...muted...
>

Maybe some list code such that
if ( root@localhost )
 set the face
fi

????

Thanks,
Barrie




^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: TRAMP and faces
  2009-12-03 23:12 TRAMP and faces Barrie
  2009-12-04  0:24 ` Barrie
@ 2009-12-04  8:55 ` Barrie
  2009-12-05 11:21   ` Peter Dyballa
       [not found]   ` <mailman.12272.1260012110.2239.help-gnu-emacs@gnu.org>
  2009-12-04  9:04 ` Peter Dyballa
       [not found] ` <mailman.12162.1259917514.2239.help-gnu-emacs@gnu.org>
  3 siblings, 2 replies; 7+ messages in thread
From: Barrie @ 2009-12-04  8:55 UTC (permalink / raw)
  To: help-gnu-emacs

On Thu, 03 Dec 2009 23:12:56 +0000, Barrie wrote:

What I'm looking for is a way to make the background of the mode-line red 
when running a buffer through tramp.

TIA,
Barrie



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: TRAMP and faces
  2009-12-03 23:12 TRAMP and faces Barrie
  2009-12-04  0:24 ` Barrie
  2009-12-04  8:55 ` Barrie
@ 2009-12-04  9:04 ` Peter Dyballa
       [not found] ` <mailman.12162.1259917514.2239.help-gnu-emacs@gnu.org>
  3 siblings, 0 replies; 7+ messages in thread
From: Peter Dyballa @ 2009-12-04  9:04 UTC (permalink / raw)
  To: Barrie; +Cc: help-gnu-emacs


Am 04.12.2009 um 00:12 schrieb Barrie:

> Is there a way to automatically change the colors when editing a  
> file in
> tramp mode???


Dedicated frame with different (colour) layout?

--
Greetings

   Pete

The problem with the French is that they don't have a word for «  
entrepreneur ».
				– Georges W. Bush





^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: TRAMP and faces
       [not found] ` <mailman.12162.1259917514.2239.help-gnu-emacs@gnu.org>
@ 2009-12-04  9:21   ` Barrie
  0 siblings, 0 replies; 7+ messages in thread
From: Barrie @ 2009-12-04  9:21 UTC (permalink / raw)
  To: help-gnu-emacs

On Fri, 04 Dec 2009 10:04:32 +0100, Peter Dyballa wrote:

...muted...

Thank you Peter I'll give that a shot after work today!

Barrie



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: TRAMP and faces
  2009-12-04  8:55 ` Barrie
@ 2009-12-05 11:21   ` Peter Dyballa
       [not found]   ` <mailman.12272.1260012110.2239.help-gnu-emacs@gnu.org>
  1 sibling, 0 replies; 7+ messages in thread
From: Peter Dyballa @ 2009-12-05 11:21 UTC (permalink / raw)
  To: Barrie; +Cc: help-gnu-emacs


Am 04.12.2009 um 09:55 schrieb Barrie:

> What I'm looking for is a way to make the background of the mode- 
> line red
> when running a buffer through tramp.
>


Here is a message cited from last year (2008-11-13):

Nordlöw> I would like to visually hint that I am editing a buffer as
Nordlöw> root (using TRAMP) by setting the background to a slightly more
Nordlöw> red color. What hooks are involved?

Exemple to change the header line :

(defun my-tramp-header-line-function ()
  (when (string-match "^/su\\(do\\)?:" default-directory)
    (setq header-line-format
	  (format-mode-line "----- THIS BUFFER IS VISITED WITH ROOT  
PRIVILEGES -----"
			    'font-lock-warning-face))))

(add-hook 'find-file-hooks 'my-tramp-header-line-function)
(add-hook 'dired-mode-hook 'my-tramp-header-line-function)


You can add more...

--
Greetings

   Pete

      _o    o         o   o
    _<<     \\_/\_,   \\_ \\_/\_,
   (*)/(*) (*)   (*) (*) `-    (*)





^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: TRAMP and faces
       [not found]   ` <mailman.12272.1260012110.2239.help-gnu-emacs@gnu.org>
@ 2009-12-05 13:24     ` Barrie
  0 siblings, 0 replies; 7+ messages in thread
From: Barrie @ 2009-12-05 13:24 UTC (permalink / raw)
  To: help-gnu-emacs

On Sat, 05 Dec 2009 12:21:41 +0100, Peter Dyballa wrote:

Thank you Sir!  That is exactly what I was looking for.  To this point 
I've got it opening a new frame when F5 is pressed but I couldn't get any 
kind of color indicator.

Barrie H.



^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2009-12-05 13:24 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-12-03 23:12 TRAMP and faces Barrie
2009-12-04  0:24 ` Barrie
2009-12-04  8:55 ` Barrie
2009-12-05 11:21   ` Peter Dyballa
     [not found]   ` <mailman.12272.1260012110.2239.help-gnu-emacs@gnu.org>
2009-12-05 13:24     ` Barrie
2009-12-04  9:04 ` Peter Dyballa
     [not found] ` <mailman.12162.1259917514.2239.help-gnu-emacs@gnu.org>
2009-12-04  9:21   ` Barrie

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 read-only IMAP folder(s) and NNTP newsgroup(s).