0

In ViM, there is a :smile command that displays lighthearted ASCII graphics of a figure that smiles.

Is there an equivalent command available in Emacs?

1
  • 5
    Not exactly, but there are M-x butterfly, M-x doctor, M-x gomoku and few other lighthearted commands.
    – wvxvw
    Commented Jul 19, 2017 at 12:07

1 Answer 1

4

It's not too tricky to do yourself:

(defun smile ()
  "Smile at you.

See https://emacs.stackexchange.com/questions/34271/equivalent-to-the-vim-smile-command"
  (interactive)
  (with-help-window "*smile*"
    (princ "                            oooo$$$$$$$$$$$$oooo
                        oo$$$$$$$$$$$$$$$$$$$$$$$$o
                     oo$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$o         o$   $$ o$
     o $ oo        o$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$o       $$ $$ $$o$
  oo $ $ \"$      o$$$$$$$$$    $$$$$$$$$$$$$    $$$$$$$$$o       $$$o$$o$
  \"$$$$$$o$     o$$$$$$$$$      $$$$$$$$$$$      $$$$$$$$$$o    $$$$$$$$
    $$$$$$$    $$$$$$$$$$$      $$$$$$$$$$$      $$$$$$$$$$$$$$$$$$$$$$$
    $$$$$$$$$$$$$$$$$$$$$$$    $$$$$$$$$$$$$    $$$$$$$$$$$$$$  \"\"\"$$$
     \"$$$\"\"\"\"$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$     \"$$$
      $$$   o$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$     \"$$$o
     o$$\"   $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$       $$$o
     $$$    $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$\" \"$$$$$$ooooo$$$$o
    o$$$oooo$$$$$  $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$   o$$$$$$$$$$$$$$$$$
    $$$$$$$$\"$$$$   $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$     $$$$\"\"\"\"\"\"\"\"
   \"\"\"\"       $$$$    \"$$$$$$$$$$$$$$$$$$$$$$$$$$$$\"      o$$$
              \"$$$o     \"\"\"$$$$$$$$$$$$$$$$$$\"$$\"         $$$
                $$$o          \"$$\"\"$$$$$$\"\"\"\"           o$$$
                 $$$$o                                o$$$\"
                  \"$$$$o      o$$$$$$o\"$$$$o        o$$$$
                    \"$$$$$oo     \"\"$$$$o$$$$$o   o$$$$\"\"
                       \"\"$$$$$oooo  \"$$$o$$$$$$$$$\"\"\"
                          \"\"$$$$$$$oo $$$$$$$$$$
                                  \"\"\"\"$$$$$$$$$$$
                                      $$$$$$$$$$$$
                                       $$$$$$$$$$\"
                                        \"$$$\"\"\"\"
")))
1
  • 1
    To format code, select it and press Ctrl+K (or click the {} button above the editor). Commented Jul 20, 2017 at 6:54

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.