emacs-hnreader icon indicating copy to clipboard operation
emacs-hnreader copied to clipboard

implement hnreader-mode

Open csantosb opened this issue 2 years ago • 3 comments
trafficstars

Use a dedicated mode, instead of using org. This way, one may declare hooks, mode variables, etc. in order to customize behavior.

csantosb avatar Nov 13 '23 15:11 csantosb

Thanks for the PM, but a major mode is overkill to me. Will a minor mode work for you?

thanhvg avatar Nov 24 '23 15:11 thanhvg

Will a minor mode work for you?

A minor mode would be equivalent to checking HN buffer name from an org hook, and then performing customisation.

The idea of a major mode, built upon org, is having access to a keymap and hooks, from where one might include minor modes to customise experience. This is a more elegant approach, in my opinion, giving a chance to adapt hnreader to one’s needs.

By default, a major with no customisation at user side would be equivalent to what exists now, plain org.

csantosb avatar Nov 24 '23 21:11 csantosb