deft icon indicating copy to clipboard operation
deft copied to clipboard

Please make deft-separator a custom option

Open saf-dmitry opened this issue 7 years ago • 5 comments

The default value of deft-separator takes a lot of space. Making deft-separator variable a custom option would allow user to adjust it to his/her preference.

saf-dmitry avatar Jul 02 '18 12:07 saf-dmitry

I thought that because it was a defconst instead of just a normal defvar that maybe the program needed to key upon it somehow or (?). So I went through the code and it does not seem to me that this is the case. So I just changed the value to what I wanted (in my case " - ").

@saf-dmitry,

If you did not know, there is nothing in Emacs Lisp really stopping you from setting the value of a defconst like there is in some other languages. However it is considered a hint from the program writer, and that is why I took a good look through the program before deciding to just change the value.

TRSx80 avatar Aug 13 '20 03:08 TRSx80

If you did not know, there is nothing in Emacs Lisp really stopping you from setting the value of a defconst like there is in some other languages.

@TRSx80 Thank you, I know this and I actually use this hint already. I do think, however, that making deft-separator a custom option would make sense from the above-mentioned perspective.

saf-dmitry avatar Aug 13 '20 08:08 saf-dmitry

Just mentioned it in case you did not, as it's something I myself only learned somewhat recently. :slightly_smiling_face:

I do agree with you, I think it should be a regular defvar, I see no reason for it to be a defconst. In fact I would be willing to submit a PR if @jrblevin is open to it, but he seems perhaps occupied elsewhere as of late.

TRSx80 avatar Aug 13 '20 14:08 TRSx80

I do agree with you, I think it should be a regular defvar, I see no reason for it to be a defconst.

Actually, it should be defcustom, like all custom options.

In fact I would be willing to submit a PR if @jrblevin is open to it, but he seems perhaps occupied elsewhere as of late.

Unfortunately.

saf-dmitry avatar Aug 13 '20 17:08 saf-dmitry

Actually, it should be defcustom, like all custom options.

Reason I suggested defvar, at least initially, is because it seems all other variables are already that way, and this would be a much smaller change.

Ultimately however, I suppose you are right, but that would be more involved, changing all existing variables as well, and assigning them types, etc...

Maybe by the time jrblevin appears we will have it all hashed out. :smile:

All jokes aside, my personal belief is that it's not worth expending our {limited,valuable} time/effort if the PRs will languish there and never get included. There are already some from 2018 which have not been released. I am willing to help out, but... (y'know...)

TRSx80 avatar Aug 13 '20 17:08 TRSx80