I use Emacs. However, I am not familiar with Lisp although I do know some functional programming, and hence I never really understood how to customize the init.el
.
So basically, I want to be able to enable the toolbar mode and menubar mode only if I am in R-mode
.
I know that to enable these mode simply requires:
(tool-bar-mode 1)
and (menu-bar-mode 1)
but what if I want to do this locally, i.e. enable them only if I am in R-mode
.
What should I put in the init.el
?