{"id":46,"date":"2009-01-23T21:10:32","date_gmt":"2009-01-23T20:10:32","guid":{"rendered":"http:\/\/www.schuerig.de\/michael\/blog\/?p=46"},"modified":"2021-11-24T09:20:32","modified_gmt":"2021-11-24T08:20:32","slug":"emacs-console-or-gui","status":"publish","type":"post","link":"https:\/\/www.schuerig.de\/michael\/blog\/index.php\/2009\/01\/23\/emacs-console-or-gui\/","title":{"rendered":"Emacs Tidbit: Console or GUI?"},"content":{"rendered":"<p>Emacs has two different UIs: one using only a text console, the other using the window system. Even when a window system is present, Emacs can be started in a terminal emulator with the <code>-nw<\/code> option to show its text UI.<\/p>\n<p>There are some customizations you might want to make conditional on the kind of UI. In my case, I use <a href=\"http:\/\/ecb.sourceforge.net\/\">ECB<\/a>, and in general I&#8217;d like it to start up automatically when I launch Emacs, but only when running in GUI mode.<\/p>\n<p>It&#8217;s pretty simple to achieve this, a small addition to <code>~\/.emacs<\/code> does the trick.<\/p>\n<p><code><\/p>\n<pre>\r\n(if (memq window-system '(x w32 mac))\r\n  (ecb-activate))\r\n<\/pre>\n<p><\/code><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Emacs has two different UIs: one using only a text console, the other using the window system. Even when a window system is present, Emacs can be started in a terminal emulator with the -nw option to show its text &hellip; <a href=\"https:\/\/www.schuerig.de\/michael\/blog\/index.php\/2009\/01\/23\/emacs-console-or-gui\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[18],"tags":[],"class_list":["post-46","post","type-post","status-publish","format-standard","hentry","category-emacs"],"_links":{"self":[{"href":"https:\/\/www.schuerig.de\/michael\/blog\/index.php\/wp-json\/wp\/v2\/posts\/46","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.schuerig.de\/michael\/blog\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.schuerig.de\/michael\/blog\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.schuerig.de\/michael\/blog\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.schuerig.de\/michael\/blog\/index.php\/wp-json\/wp\/v2\/comments?post=46"}],"version-history":[{"count":2,"href":"https:\/\/www.schuerig.de\/michael\/blog\/index.php\/wp-json\/wp\/v2\/posts\/46\/revisions"}],"predecessor-version":[{"id":117,"href":"https:\/\/www.schuerig.de\/michael\/blog\/index.php\/wp-json\/wp\/v2\/posts\/46\/revisions\/117"}],"wp:attachment":[{"href":"https:\/\/www.schuerig.de\/michael\/blog\/index.php\/wp-json\/wp\/v2\/media?parent=46"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.schuerig.de\/michael\/blog\/index.php\/wp-json\/wp\/v2\/categories?post=46"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.schuerig.de\/michael\/blog\/index.php\/wp-json\/wp\/v2\/tags?post=46"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}