Skip to content

Show the history of points you visited before

Notifications You must be signed in to change notification settings

conao3/point-history

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 

Repository files navigation

Point History

Remember the points you visited before as history, and re-visit them quickly.

This package is greatly inspired from point-undo.el and jump-back!.

Whats' This

This package can remember the cursor-position as history, which you stayed before.
When you want to back to the position, you can select the position from the history.

point-history

Features

  • Remember point-info as history which you stayed over point-history-save-timer
  • point-info contains buffer-name, cursor-position, line-content
  • Access the list of point-info's history and select them to visit the position again
  • Preview the buffer quickly in the other window

Setup

Requrements

This package use popwin-el.
You need to install it beforehand.

Settings

git clone and edit your init.el as below.

(add-to-list 'load-path "YOUR PATH")
(require 'point-history)

;; enable minor mode
(point-history-mode t)

;; optional
(global-set-key (kbd "YOUR KEY") 'point-history-show)

Usage

Use M-x point-history-show and you can open point-history-show-buffer with history.
Then you can select the point in history and press Enter to jump to its position.

When you want to change the keymap in point-history-show-buffer, edit init.el as below.

(define-key point-history-show-mode-map (kbd "n") 'point-history-next-line)
(define-key point-history-show-mode-map (kbd "p") 'point-history-prev-line)

Customizable variables

variable usage default value
point-history-max-item-num Max number of points saved in history 100
point-history-show-buffer-height Buffer height to show point-history 30
point-history-save-timer Interval time to save point in history 1
point-history-should-preview show the preview of buffers t

Tips

If you edit point-history-ignore-buffer and point-history-ignore-major-mode, You can ignore points to save into history for specific buffers and major-modes.

(setq point-history-ignore-buffer "^ \\*Minibuf\\|^ \\*point-history-show*")
(setq point-history-ignore-major-mode '(emacs-lisp-mode ruby-mode))

Extensions

About

Show the history of points you visited before

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Emacs Lisp 100.0%