emacs-ess / ESS

Emacs Speaks Statistics: ESS
https://ess.r-project.org/
GNU General Public License v3.0
614 stars 160 forks source link

font locking vectors #1192

Closed nvall closed 2 years ago

nvall commented 2 years ago

Hi, Does anyone know if it is possible to font lock a vector that is assigned in a script ? For example in the script below I would like to font lock a

a <- 1
# or
a <- data.frame()

Thank you for your help !

vspinu commented 2 years ago

Check ESS>Font Lock sub-menu. Select there whatever you want to highlight. What you want is assign operator if I understand you correctly. Don't forget to "Save to custom".

nvall commented 2 years ago

Great, it was already set but I have to set a different color. Thank you.