tag:blogger.com,1999:blog-3992530807750384868.post6841811278979936496..comments2022-03-28T08:42:20.497+03:00Comments on emacs-fu: sauron: keeping an eye on what's going onUnknownnoreply@blogger.comBlogger17125tag:blogger.com,1999:blog-3992530807750384868.post-22689857256331213372015-06-21T08:08:20.062+03:002015-06-21T08:08:20.062+03:00This comment has been removed by a blog administrator.Hindi Song Lyricshttp://lyricsriver.comnoreply@blogger.comtag:blogger.com,1999:blog-3992530807750384868.post-62188200365143850682012-09-29T11:55:02.380+03:002012-09-29T11:55:02.380+03:00I have just started using Stumpwm, and wondering h...I have just started using Stumpwm, and wondering how I could get Sauron to output lines to stumpwm's mode-line?<br /><br />I can't imagine it would be too difficult. Any ideas how I could do this?Toma Que Tomás ('Mash)https://www.blogger.com/profile/06559571412821312087noreply@blogger.comtag:blogger.com,1999:blog-3992530807750384868.post-12113011005681540262012-03-18T16:40:01.764+02:002012-03-18T16:40:01.764+02:00Hello djcb,
the lisp code in my previous posting ...Hello djcb,<br /><br />the lisp code in my previous posting is wrong, even though it seems to work there are mistakes in the syntax. I have cloned now from github and I have a now a proper diff to the change I really meant, it is attached below. Perhaps you could simply edit the previos comment replacing the code by the diff.<br /><br />There is one thing in the original code that I cannot understand. The second form in 'let*', 'frame' seems to be a variable to set, but it is also passed as parameter to window-frame. How is this?<br /><br />Rodrigo<br /><br />diff --git a/sauron.el b/sauron.el <br />index e7e84c9..b7c6e09 100644 <br />--- a/sauron.el <br />+++ b/sauron.el <br />@@ -455,23 +455,24 @@ current frame." <br /> (let* ((win (get-buffer-window sr-buffer)) <br /> (frame (and win (window-frame frame)))) <br /> (if (and frame win) <br /> (progn <br /> (select-window win) <br /> (make-frame-visible frame)) <br /> (progn <br />- (switch-to-buffer-other-frame sr-buffer) <br /> (let ((frame-params <br /> (append <br />- `((tool-bar-lines . 0) (menu-bar-lines . 0) <br />- (unsplittable . t) (sticky . ,sauron-sticky-frame)) <br />+ `((name . "SauronFrame") <br />+ (tool-bar-lines . 0) (menu-bar-lines . 0) <br />+ (unsplittable . t) (sticky . ,sauron-sticky-frame)) <br /> (x-parse-geometry sauron-frame-geometry)))) <br />- (modify-frame-parameters nil frame-params)))) <br />- (if sauron-hide-mode-line <br />- (setq mode-line-format nil)) <br />+ (setq sr-frame (make-frame frame-params)) <br />+ (set-window-buffer (frame-selected-window sr-frame) sr-buffer)))) <br />+ (if sauron-hide-mode-line <br />+ (setq mode-line-format nil)) <br /> (set-window-dedicated-p (selected-window) t))) <br /> <br /> (defun sr-split-window-below (new-win-size) <br /> "Split the window, return the new window below. We need this <br /> function because emacs 23 does not support the negative size <br /> argument to split-window." <br /> (split-windowramesticahttps://www.blogger.com/profile/07816368444094883988noreply@blogger.comtag:blogger.com,1999:blog-3992530807750384868.post-74356745663533165342012-03-17T21:08:28.031+02:002012-03-17T21:08:28.031+02:00I like your blog, your color theme, the name "...I like your blog, your color theme, the name "sauron", the package idea, and the idea of integrating similar packages somehow.<br /><br />I think I like the name "sauron" the most. :)Samuel Waleshttps://www.blogger.com/profile/11141951571229527898noreply@blogger.comtag:blogger.com,1999:blog-3992530807750384868.post-76582947155635726902012-03-15T05:13:30.844+02:002012-03-15T05:13:30.844+02:00a modified version of sr-show-in-separate-frame is...a modified version of sr-show-in-separate-frame is shown below. The 'name' parameter is useful for me to associate a window rule.<br /><br />For shutting down I'm using now delete-frame-functions, to which I added one method that detects the frame from where sauron was started by means of a custom parameter (set-frame-parameter). In this function sauron-stop is invoked. All this being very idiosyncratic to the way I use org mode (normally i open every org mode file in only one single frame.) <br /><br />(defun sr-show-in-separate-frame ()<br /> "Show the sauron buffer in a separate frame."<br /> (setq sr-buffer (sr-create-buffer-maybe))<br /> (let* ((win (get-buffer-window sr-buffer))<br /> (frame (and win (window-frame frame))))<br /> (if (and frame win)<br /> ((progn )<br /> (select-window win)<br /> (make-frame-visible frame))<br /> (setq sr-frame (make-frame (append<br /> `((name . "SauronFrame") (menu-bar-lines . 0)) <br /> (x-parse-geometry sauron-frame-geometry))))<br /> (set-window-buffer (frame-selected-window sr-frame) sr-buffer))))ramesticahttps://www.blogger.com/profile/07816368444094883988noreply@blogger.comtag:blogger.com,1999:blog-3992530807750384868.post-49943481045612128622012-03-10T12:55:31.294+02:002012-03-10T12:55:31.294+02:00@ramestica: any idea what the make-frame should lo...@ramestica: any idea what the make-frame should look like? I guess that's also the reason for your second prob.<br /><br />Note, the current sauron also supports the sauron window the be part of the existing frame.djcbhttps://www.blogger.com/profile/15938154009846040711noreply@blogger.comtag:blogger.com,1999:blog-3992530807750384868.post-12513505671798033932012-03-04T16:32:35.118+02:002012-03-04T16:32:35.118+02:00many thanks for this tool!
1. it will be nice if ...many thanks for this tool!<br /><br />1. it will be nice if you could change sauron's frame creation to make-frame and pass there frame parameters. otherwise my windows manager does not apply window rules as expected.<br /><br />2. what's the proper way for shutting down? I added sauron-stop to kill-emacs-hook but the frame remains there.<br /><br />many thanks again,<br /> Rodrigoramesticahttps://www.blogger.com/profile/07816368444094883988noreply@blogger.comtag:blogger.com,1999:blog-3992530807750384868.post-51472425560744289942012-02-26T12:36:27.641+02:002012-02-26T12:36:27.641+02:00@Anonymous: you can get GMail
notifications by wr...@Anonymous: you can get GMail <br />notifications by writing a little cron script that combines [1] and sauron-msg (dbus)<br /><br />[1] http://www.commandlinefu.com/commands/view/3380/check-your-unread-gmail-from-the-command-linedjcbhttps://www.blogger.com/profile/15938154009846040711noreply@blogger.comtag:blogger.com,1999:blog-3992530807750384868.post-55305280692831897642012-02-26T04:36:25.045+02:002012-02-26T04:36:25.045+02:00Can I configure Sauron to notify me when a new mes...Can I configure Sauron to notify me when a new message arrives on my Gmail account?Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-3992530807750384868.post-90554847862341695762011-12-31T10:21:04.525+02:002011-12-31T10:21:04.525+02:00Awesome! What a handy tool. It works fine on my Ma...Awesome! What a handy tool. It works fine on my Macbook. Thanks.Jianing YANGhttps://www.blogger.com/profile/18430422069585397955noreply@blogger.comtag:blogger.com,1999:blog-3992530807750384868.post-50597011885843367912011-12-29T02:00:02.661+02:002011-12-29T02:00:02.661+02:00Thank you for Sauron; it's working very nicely...Thank you for Sauron; it's working very nicely, and already greatly appreciated.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-3992530807750384868.post-29149745781289814452011-12-22T12:06:39.015+02:002011-12-22T12:06:39.015+02:00Hey that's a really nice tool !
Thanks !Hey that's a really nice tool !<br />Thanks !Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-3992530807750384868.post-79680264885031732282011-12-22T08:04:40.147+02:002011-12-22T08:04:40.147+02:00@qdot: hope you'll like it -- it's highly ...@qdot: hope you'll like it -- it's highly tuned to my particular needs so far, I'd be happy to hear suggestions if it does work for you.<br /><br />@Anonymous: 'alert' looks like a nice, generic/programmable way to show events - and I wish I could write nice elisp like that some day! It seems the most straightforward way to combine with sauron would be to add some 'sauron-fx-alert' (analogous to the other 'sauron-fx-...' functions) and map the priorities to the alert types. I'll see if I can write something for that.djcbhttps://www.blogger.com/profile/15938154009846040711noreply@blogger.comtag:blogger.com,1999:blog-3992530807750384868.post-56657046913679164152011-12-22T07:48:21.891+02:002011-12-22T07:48:21.891+02:00p.s. Love the name :)p.s. Love the name :)Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-3992530807750384868.post-71731508411448062412011-12-22T07:47:43.754+02:002011-12-22T07:47:43.754+02:00Well that sounds like exactly what I've been w...Well that sounds like exactly what I've been wanting for the past couple of months. Cheers. (And ditto to John.)Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-3992530807750384868.post-26881611022113840222011-12-22T06:22:50.524+02:002011-12-22T06:22:50.524+02:00The functionality of sauron has a *lot* in common ...The functionality of sauron has a *lot* in common with alert.el that I wrote, for managing alerts coming from anywhere inside of Emacs. Maybe there's room here for merging some functionality?<br /><br />https://github.com/jwiegley/alert<br /><br />JohnAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-3992530807750384868.post-7965279327741643982011-12-22T02:55:40.926+02:002011-12-22T02:55:40.926+02:00Oh man. I've been getting sick of todochiku (o...Oh man. I've been getting sick of todochiku (or as of emacs24, notifications.el) + notify-send losing information when I'm not around to see the event, popping dialogs that only show one at a time, etc... Was just thinking I'd like a single window that keeps this stuff around that I could pop whenever I needed. I'll probably just throw it in a workgroups.el workgroup to bring up whenever I want. This'll be awesome, thanks!qdothttp://www.nonpolynomial.comnoreply@blogger.com