Skip to content

A notifications panel for spacemacs, that works with org mode and evil mode

Notifications You must be signed in to change notification settings

emad-elsaid/notifications.el

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

notifications layer

Table of Contents

Description

A notifications layer for Spacemacs, that works with org mode and evil mode

This package offers a simple way to handle notifications in Emacs, notifications could be a new email, a bookmark from a file with a to do message, someone sent a message to you on a messaging application

The idea is to open a side bar, that shows an Org file, every list item is a notification, and archiving the item is equivalent to marking the notifications ar read.

using Org mode as a format takes advantage of the Org mode linking, as you can link to a file or a URL or a remote file, and even sub notifications, if you wish as a sub-list

The package defines a minor mode that adds some other small keybinding for Evil mode such as ‘q’ to close the panel or ‘r’ to mark current highlighted notification as read and archive it.

So simply it’s an Org file opened in a window to the side waiting for the file to be changed to reload, you can write any comandline tool that works in the background and appends to that file, this is how you push a new notification, it’s as simple as that so a command line `echo “* new notification” >> ~/path/to/notificatins.org` will push a new notification to your Emacs notifications side bar, and as the panel has `auto-revert-mode’ it’ll display it automatically

Install

To use this configuration layer, add it to your ~/.spacemacs. You will need to add notifications to the existing dotspacemacs-configuration-layers list in this file.

Variables

variableDescription
notifications-filethe notifications file path
notifications-panel-widththe sidebar width characters

Keybindings

Keyfunction
SPC a n nOpen notifications panel
SPC a n bCreate a bookmark linking to the current file and line
SPC a n tCreate a todo with title and description

Notification Panel Keybindings

KeybindingFunction
rMark the notification as read and archive it
qClose the notificatins panel

About

A notifications panel for spacemacs, that works with org mode and evil mode

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published