I know there is a function called:
facemenu-set-bold, which is bound to M-o b, but I'm trying to write my own as an exercise. Here is my code:
(defun my-function() "this is my function" (interactive) (facemenu-set-face 'bold))
When I select a region and call this function using
M-x my-function, the region itself is not affected, only the newly inserted text is bold, can someone please, explain to me why.