Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

only display MEM #31

Open
lix90 opened this issue Dec 5, 2016 · 4 comments
Open

only display MEM #31

lix90 opened this issue Dec 5, 2016 · 4 comments

Comments

@lix90
Copy link

lix90 commented Dec 5, 2016

hi, when I set it up, I can only have MEM on the mini buffer. What may cause this? I am at MacOS el captain 10.11, emacs 25.1

@zk-phi
Copy link
Owner

zk-phi commented Dec 6, 2016

You just load and activate symon-mode (if you have any configurations, please show me that) ?

(require 'symon)
(symon-mode 1)

I want to know whether the problem is caused while rendering or fetching stats, so can you please evaluate the following expression with symon-mode activated (copy-and-paste the expression into an emacs-lisp-mode buffer, then M-x eval-last-sexp) ?

The expression is expected to fetch stats and format as a string.

@lix90
Copy link
Author

lix90 commented Dec 6, 2016

screen shot 2016-12-06 at 09 17 54

It ends up like this. : (

@zk-phi
Copy link
Owner

zk-phi commented Dec 8, 2016

oops sorrrrry I forgot to paste the code....

(apply 'concat (mapcar 'funcall (car symon--display-fns)))

↑this expression is expected to return the display string.

@lix90
Copy link
Author

lix90 commented Dec 8, 2016

i tried this code and it resulted in some strings displaying in mini-buffer and *message* buffer. After that, however, mini-buffer still only had MEM. Sorry for my ignorance in emacs-lisp. Maybe I put the code in a wrong place.

(use-package symon
  :ensure t
  :defer t
  :init
  (symon-mode)
  (apply 'concat (mapcar 'funcall (car symon--display-fns)))
  :config
  (setq symon-sparkline-type 'bounded
        symon-sparkline-thickness 1))
#("MEM:53%   CPU:1%   RX:1KB/s   TX:0KB/s   " 8 9 (display (image :type xpm :data "/* XPM */
static char * sparkline_xpm[] = { \"80 11 2 1\", \"@ c #839496\", \". c none\",
\"@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.\",
\"................................................................................\",
\"................................................................................\",
\"................................................................................\",
\"................................................................................\",
\"@@@@@@@@@@@@....................................................................\",
\"................................................................................\",
\"................................................................................\",
\"................................................................................\",
\"................................................................................\",
\"@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.\"};" :ascent 100 :height 11 :width 80)) 17 18 (display (image :type xpm :data "/* XPM */
static char * sparkline_xpm[] = { \"80 11 2 1\", \"@ c #839496\", \". c none\",
\"@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.\",
\"................................................................................\",
\"................................................................................\",
\"................................................................................\",
\"................................................................................\",
\"................................................................................\",
\"................................................................................\",
\"................................................................................\",
\"................................................................................\",
\"................................................................................\",
\"@@@@@@@@@@@@@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.\"};" :ascent 100 :height 11 :width 80)) 28 29 (display (image :type xpm :data "/* XPM */
static char * sparkline_xpm[] = { \"80 11 2 1\", \"@ c #839496\", \". c none\",
\"@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.\",
\"................................................................................\",
\"................................................................................\",
\"................................................................................\",
\"................................................................................\",
\"................................................................................\",
\"................................................................................\",
\"................................................................................\",
\"................................................................................\",
\"................................................................................\",
\"@@@@@@@@@@@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.\"};" :ascent 100 :height 11 :width 80)) 39 40 (display (image :type xpm :data "/* XPM */
static char * sparkline_xpm[] = { \"80 11 2 1\", \"@ c #839496\", \". c none\",
\"@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.\",
\"................................................................................\",
\"................................................................................\",
\"................................................................................\",
\"................................................................................\",
\"................................................................................\",
\"................................................................................\",
\"................................................................................\",
\"................................................................................\",
\"................................................................................\",
\"@@@@@@@@@@@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.\"};" :ascent 100 :height 11 :width 80)))

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants