Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 19 additions & 20 deletions Readme.org
Original file line number Diff line number Diff line change
Expand Up @@ -12,27 +12,26 @@ so you know where it is.

That’s it.

** Customizations
** Customization Example

- The appearance of the beacon is configured by ~beacon-size~ and
~beacon-color~.

- The duration is configured by ~beacon-blink-duration~ and
~beacon-blink-delay~.

- To customize /when/ the beacon should blink at all, configure
~beacon-blink-when-window-scrolls~,
~beacon-blink-when-window-changes~, and
~beacon-blink-when-point-moves~.

- To prevent the beacon from blinking only on specific situations
configure ~beacon-dont-blink-major-modes~,
~beacon-dont-blink-predicates~, or ~beacon-dont-blink-commands~. You
can also disable it only in specific buffers by doing
~(setq-local beacon-mode nil)~.

- Beacon can also push the mark for you whenever point moves a long
distance. For this, configure ~beacon-push-mark~.
#+BEGIN_SRC emacs-lisp
(use-package beacon
:bind* (("<C-i>" . beacon-backward-forward-previous)
("C-o" . beacon-backward-forward-next)
("M-\"" . beacon-blink))
;; go back to point when jumping (beacon-backward-forward-previous,beacon-backward-forward-next)
;; started with keyboard-quit (C-g)
:hook after-init
:config
(setq beacon-color "#00f600"
beacon-blink-delay 0.4)
(advice-add 'pop-global-mark :around
(defun my/pop-global-mark-display-buffer (pgm)
(interactive)
(cl-letf (((symbol-function 'switch-to-buffer)
#'pop-to-buffer))
(funcall pgm)))))
#+END_SRC

** Contributors

Expand Down
Loading