eschulte / epresent

Presentations in Emacs -- based on Org-mode
183 stars 50 forks source link

centering #30

Open unhammer opened 9 years ago

unhammer commented 9 years ago

It'd be nice to have some sort of centering. Currently I use

(add-hook 'epresent-start-presentation-hook #'center-current-window)

with

https://gist.github.com/unhammer/103e8ad5823ea323d328

but I feel like that code is a bit roundabout …


Also, since fringes look ugly centered:

(defun turn-on-fringe-mode ()
  (set-fringe-style nil))
(defun turn-off-fringe-mode ()
  (set-fringe-style 0))
(add-hook 'epresent-start-presentation-hook #'turn-off-fringe-mode)
(add-hook 'epresent-stop-presentation-hook #'turn-on-fringe-mode)
eschulte commented 8 years ago

That would be nice, I'd be happy to merge in a change that makes centering easier (maybe even the default?). At the least it might be nice to mention centering in the comments or the README.