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?

  • 3
    Not exactly, but there are M-x butterfly, M-x doctor, M-x gomoku and few other lighthearted commands. – wvxvw Jul 19 '17 at 12:07
3

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
    To format code, select it and press Ctrl+K (or click the {} button above the editor). – Gilles 'SO- stop being evil' Jul 20 '17 at 6:54

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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