Skip to main content
An extra pair of parentheses is not needed.
Source Link
lawlist
  • 19.7k
  • 5
  • 44
  • 128

As noted by @phils in the comment below, the Emacs manual suggests not modifying the face-remapping-alist directly due to possible unintended side effects: . . .to avoid trampling on remappings applied elsewhere. Thus, (setq-local face-remapping-alist '((stripe-highlight (:background "white" :foreground "black")))) is not considered to be the preferred method. Instead, the Emacs manual suggests using a function such as face-remap-add-relative:

(face-remap-add-relative 'stripe-highlight '((:foreground "black" :background "yellow"))) 

Here is a link to additional Emacs documentation on this issue: http://www.gnu.org/software/emacs/manual/html_node/elisp/Face-Remapping.html

As noted by @phils in the comment below, the Emacs manual suggests not modifying the face-remapping-alist directly due to possible unintended side effects: . . .to avoid trampling on remappings applied elsewhere. Thus, (setq-local face-remapping-alist '((stripe-highlight (:background "white" :foreground "black")))) is not considered to be the preferred method. Instead, the Emacs manual suggests using a function such as face-remap-add-relative:

(face-remap-add-relative 'stripe-highlight '((:foreground "black" :background "yellow"))) 

Here is a link to additional Emacs documentation on this issue: http://www.gnu.org/software/emacs/manual/html_node/elisp/Face-Remapping.html

As noted by @phils in the comment below, the Emacs manual suggests not modifying the face-remapping-alist directly due to possible unintended side effects: . . .to avoid trampling on remappings applied elsewhere. Thus, (setq-local face-remapping-alist '((stripe-highlight (:background "white" :foreground "black")))) is not considered to be the preferred method. Instead, the Emacs manual suggests using a function such as face-remap-add-relative:

(face-remap-add-relative 'stripe-highlight '(:foreground "black" :background "yellow")) 

Here is a link to additional Emacs documentation on this issue: http://www.gnu.org/software/emacs/manual/html_node/elisp/Face-Remapping.html

deleted 17 characters in body
Source Link
lawlist
  • 19.7k
  • 5
  • 44
  • 128

As noted by @phils in the comment below, the Emacs manual suggests not modifying the face-remapping-alist directly due to possible unintended side effects: . . .to avoid trampling on remappings applied elsewhere. Thus, (setq-local face-remapping-alist '((stripe-highlight (:background "white" :foreground "black")))) is not considered to be the preferred method. Instead, the Emacs manual suggests using a function such as face-remap-add-relative:

(face-remap-add-relative  'stripe-highlight '((:foreground "black" :background "yellow") stripe-highlight)) 

Here is a link to additional Emacs documentation on this issue: http://www.gnu.org/software/emacs/manual/html_node/elisp/Face-Remapping.html

As noted by @phils in the comment below, the Emacs manual suggests not modifying the face-remapping-alist directly due to possible unintended side effects: . . .to avoid trampling on remappings applied elsewhere. Thus, (setq-local face-remapping-alist '((stripe-highlight (:background "white" :foreground "black")))) is not considered to be the preferred method. Instead, the Emacs manual suggests using a function such as face-remap-add-relative:

(face-remap-add-relative  'stripe-highlight '((:foreground "black" :background "yellow") stripe-highlight)) 

As noted by @phils in the comment below, the Emacs manual suggests not modifying the face-remapping-alist directly due to possible unintended side effects: . . .to avoid trampling on remappings applied elsewhere. Thus, (setq-local face-remapping-alist '((stripe-highlight (:background "white" :foreground "black")))) is not considered to be the preferred method. Instead, the Emacs manual suggests using a function such as face-remap-add-relative:

(face-remap-add-relative 'stripe-highlight '((:foreground "black" :background "yellow"))) 

Here is a link to additional Emacs documentation on this issue: http://www.gnu.org/software/emacs/manual/html_node/elisp/Face-Remapping.html

added 41 characters in body
Source Link
lawlist
  • 19.7k
  • 5
  • 44
  • 128

As noted by @phils in the comment below, the Emacs manual suggests not modifying the face-remapping-alist directly due to possible unintended side effects.: . . .to avoid trampling on remappings applied elsewhere. Thus, (setq-local face-remapping-alist '((stripe-highlight (:background "white" :foreground "black")))) is not considered to be the preferred method. Instead, the Emacs manual suggests using a function such as face-remap-add-relative:

(face-remap-add-relative 'stripe-highlight '((:foreground "black" :background "yellow") stripe-highlight)) 

As noted by @phils in the comment below, the Emacs manual suggests not modifying the face-remapping-alist directly due to possible unintended side effects. Thus, (setq-local face-remapping-alist '((stripe-highlight (:background "white" :foreground "black")))) is not considered to be the preferred method. Instead, the Emacs manual suggests using a function such as face-remap-add-relative:

(face-remap-add-relative 'stripe-highlight '((:foreground "black" :background "yellow") stripe-highlight)) 

As noted by @phils in the comment below, the Emacs manual suggests not modifying the face-remapping-alist directly due to possible unintended side effects: . . .to avoid trampling on remappings applied elsewhere. Thus, (setq-local face-remapping-alist '((stripe-highlight (:background "white" :foreground "black")))) is not considered to be the preferred method. Instead, the Emacs manual suggests using a function such as face-remap-add-relative:

(face-remap-add-relative 'stripe-highlight '((:foreground "black" :background "yellow") stripe-highlight)) 
added 41 characters in body
Source Link
lawlist
  • 19.7k
  • 5
  • 44
  • 128
Loading
Source Link
lawlist
  • 19.7k
  • 5
  • 44
  • 128
Loading