tag:blogger.com,1999:blog-3992530807750384868.post3182962499090078545..comments2022-03-28T08:42:20.497+03:00Comments on emacs-fu: running emacs in full-screen modeUnknownnoreply@blogger.comBlogger7125tag:blogger.com,1999:blog-3992530807750384868.post-82692977339501675212009-07-08T03:05:19.028+03:002009-07-08T03:05:19.028+03:00@djcb
But djcb-fullscreen-toggle do not exactly t...@djcb<br /><br />But djcb-fullscreen-toggle do not exactly the same job as my-frame-maximize.marcnoreply@blogger.comtag:blogger.com,1999:blog-3992530807750384868.post-45262467758560679102009-05-09T11:49:00.000+03:002009-05-09T11:49:00.000+03:00@Anonymous: sure, that shouldn't be too hard; see ...@Anonymous: sure, that shouldn't be too hard; see the information in http://www.emacswiki.org/emacs/WriteRoom<br />and check the docs for 'define-minor-mode'<br /><br />Also http://www.emacswiki.org/emacs/TheaterStyle might be interesting.djcbhttps://www.blogger.com/profile/15938154009846040711noreply@blogger.comtag:blogger.com,1999:blog-3992530807750384868.post-84330581549637549752009-05-09T11:04:00.000+03:002009-05-09T11:04:00.000+03:00Hello,
Could you make a WriteRoom like minor-mode....Hello,<br />Could you make a WriteRoom like minor-mode.<br />That is full screen plus a potential enlarged font.<br />So basically it would be a minor mode that <br />1) maximized the frame<br />2) variable-pitch-mode or buffer-face-mode<br />3) Increased margins and enlarged font.<br /><br />Would that be possible?Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-3992530807750384868.post-86654551223041497802009-04-10T23:55:00.000+03:002009-04-10T23:55:00.000+03:00That works really well on my latest emacs from the...That works really well on my latest emacs from the git mirror of cvs on Ubuntu 9.04. Thanks for the tip.Bruce Durlinghttps://www.blogger.com/profile/01495431997076082334noreply@blogger.comtag:blogger.com,1999:blog-3992530807750384868.post-16158727919652187102009-04-10T22:35:00.000+03:002009-04-10T22:35:00.000+03:00@Bruce: with a sufficiently recent emacs, a method...@Bruce: with a sufficiently recent emacs, a method without any external programs is:<BR/>----------------------------------<BR/>(defun djcb-fullscreen-toggle ()<BR/> (interactive)<BR/> (set-frame-parameter nil 'fullscreen<BR/> (if (frame-parameter nil 'fullscreen) nil 'fullboth)))<BR/>----------------------------------<BR/>This should work on Mac/Win/C64 as well.djcbhttps://www.blogger.com/profile/15938154009846040711noreply@blogger.comtag:blogger.com,1999:blog-3992530807750384868.post-15366198769972174032009-04-10T19:17:00.000+03:002009-04-10T19:17:00.000+03:00I like this a lot. I've added it to my .emacs. Tha...I like this a lot. I've added it to my .emacs. Thanks!Bruce Durlinghttps://www.blogger.com/profile/01495431997076082334noreply@blogger.comtag:blogger.com,1999:blog-3992530807750384868.post-85440604576473896202008-12-13T16:56:00.000+02:002008-12-13T16:56:00.000+02:00For Win32 I have the following (Note: it was not m...For Win32 I have the following (Note: it was not mine originally):<BR/><BR/>;;;; ------------------------------------------------------------------------<BR/>;;;; --- Frame max toggle - From: "rgb" / gnu.emacs.help / 18 Mar 2005 16:30:32 -0800<BR/>;;;; --- See also: http://www.emacswiki.org/cgi-bin/wiki/WThirtyTwoSendSysCommand<BR/>;;;; ------------------------------------------------------------------------<BR/>(make-variable-frame-local 'my-frame-state)<BR/><BR/>(defun my-frame-maximize ()<BR/> "Maximize Emacs window in win32"<BR/> (interactive)<BR/><BR/> (modify-frame-parameters nil '((my-frame-state . t)))<BR/> (w32-send-sys-command ?\xf030))<BR/><BR/> (defun my-frame-restore ()<BR/> "Restore Emacs window in win32"<BR/> (interactive)<BR/><BR/> (modify-frame-parameters nil '((my-frame-state . nil)))<BR/> (w32-send-sys-command ?\xF120))<BR/><BR/>(defun my-frame-toggle ()<BR/> "Maximize/Restore Emacs frame based on `my-frame-state'"<BR/> (interactive)<BR/> (if my-frame-state<BR/> (my-frame-restore)<BR/> (my-frame-maximize)))Joe Casadontehttps://www.blogger.com/profile/00456155873047335794noreply@blogger.com