Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
emacs
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Michael Hauspie
emacs
Commits
7a17077f
Commit
7a17077f
authored
3 months ago
by
Michael Hauspie
Browse files
Options
Downloads
Patches
Plain Diff
Change binding for org-present mode and some tweaks
parent
ec9050a3
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
configuration.org
+15
-3
15 additions, 3 deletions
configuration.org
with
15 additions
and
3 deletions
configuration.org
+
15
−
3
View file @
7a17077f
...
...
@@ -321,7 +321,7 @@ Select the font I will use depending on the system
; Font on MacOS
(progn
(setq mh-font-fixed "Fira Code")
(setq mh-font-variable "
Marianne
")
(setq mh-font-variable "
Sans Serif
")
)
; Font on Other Systems (Linux actually, I do not use emacs on windows)
(progn
...
...
@@ -595,6 +595,7 @@ it with =visual-fill-column= to enhance the visual look of the presentation.
(require 'org-faces)
;; Function to be called when changing slide
(defun my/org-present-prepare-slide (buffer-name heading)
;; Show only top-level headlines
(org-overview)
...
...
@@ -603,7 +604,8 @@ it with =visual-fill-column= to enhance the visual look of the presentation.
(org-show-entry)
;; Show only direct subheadings of the slide but don't expand them
(org-show-children))
(org-show-children)
)
;; What to do when starting/ending a presentation
(defun my/org-present-start ()
...
...
@@ -657,7 +659,7 @@ it with =visual-fill-column= to enhance the visual look of the presentation.
(defun my/org-present-end ()
(visual-fill-column-mode 0)
(visual-line-mode 0)
;
(visual-line-mode 0)
(display-line-numbers-mode 1)
(menu-bar-mode 1)
(scroll-bar-mode 1)
...
...
@@ -686,10 +688,20 @@ it with =visual-fill-column= to enhance the visual look of the presentation.
(use-package org-present
:hook (
;; Setup slides environnement when starting a presentation
(org-present-mode . my/org-present-start)
;; And restore it when leaving
(org-present-mode-quit . my/org-present-end)
)
;; Keep using <left> and <right> to move point and uses pgup and pgdown to switch slides
:bind (:map org-present-mode-keymap
("<next>" . 'org-present-next)
("<prior>" . 'org-present-prev)
("<left>" . nil)
("<right>" . nil)
)
:init
;; Behavior when switching slides
(add-hook 'org-present-after-navigate-functions 'my/org-present-prepare-slide)
)
(use-package visual-fill-column
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment