Видимость атрибутов объектов варьируется согласно тому, как Вы объявляете их
function Cat( name ) {
//private variable unique to each instance of Cat
var privateName = 'Cat_'+Math.floor( Math.random() * 100 );
//public variable unique to each instance of Cat
this.givenName = name;
//this method has access to private variables
this.sayPrivateName = function() {
alert( privateName );
}
}
//this variable is shared by all cats
Cat.prototype.generalName = 'tiddles';
//this method is shared by all cats and has no access to private vars
Cat.prototype.sayname = function( type ) {
alert( this[type+'Name'] || 'private!' );
}
var vic = new Cat('Victor');
var ellers = new Cat('Elmore');
vic.sayname('general'); //tiddles
vic.sayname('given'); //Victor
vic.sayname('private'); //private - no access
vic.sayPrivateName(); //cat will say its name
ellers.sayname('general'); //tiddles
ellers.sayname('given'); //Elmore
ellers.sayname('private'); //private - no access
ellers.sayPrivateName(); //cat will say its name
M-x kbd> customize-group
RET kbd> hl-line
RET kbd>
и измените «Лицо линии Hl».
В качестве альтернативы вы можете использовать (например):
(set-face-background 'hl-line "#333333")
edit: ответ cheeso будет более надежным подходом для этой второй версии.