Add elisp funtion for convenient usage in emacs