• 1 Post
  • 18 Comments
Joined 1 year ago
cake
Cake day: August 8th, 2023

help-circle





  • By default undo does work in the scratch buffer so it is something in your configuration that is keeping this from working. As a quick way to check, try running emacs -q, which skips loading your configuration, and see if you have undo in the scratch buffer there; if so, it’s definitely something you have in you configuration.

    You can bisect your configuration to figure out how you are deactivating undo. You can do this manually or with the help of the bug-hunter package.



  • I looked at the macro expansion of the form you wrote and it looks like gibberish, so I don’t think the :hook keyword allows expressions to be used as hooks, you need to define a function and use the function name:

    (use-package pascal ; presumably
      :init
      (defun remove-pascal-completions ()
        (remove-hook 'completion-at-point-functions
                     'pascal-completions-at-point t))
      :hook (pascal-mode . remove-pascal-completions))
    

    Also, the weird single quote character you used probably doesn’t work in Emacs (but maybe you have normal single quotes in your file and it’s just lemmy’s markdown messing things up).




  • I can see posts in lem! I guessed correctly that issue with GPG was that it really, really wanted a tty, so I tried logging in from emacs -nw and that worked. Once the credentials are stored I can use lem from GUI Emacs! Apparently I need to install some markdown executable… I faked it with ln -s /bin/cat ~/bin/markdown and everything is hideous but useable! 😛

    I tried posting this comment from lem and it seemed to work but I can’t seem to see it here, so I’m posting again from the browser. I’m getting closer and closer to lem working and am very excited.

    EDIT: spoke too soon, now I get DEcryption errors even in emacs -nw. Maybe I’m out of my depth here.




  • Does this help? With debug on error I get two hidden buffers:

    *epg* contains:

    Process epg exited abnormally with code 2
    [GNUPG:] NEED_PASSPHRASE_SYM 9 3 2
    [GNUPG:] PINENTRY_LAUNCHED 10719 curses 1.1.0 - dumb :0
    [GNUPG:] ERROR get_passphrase 32870
    [GNUPG:] CANCELED_BY_USER
    [GNUPG:] FAILURE symencrypt 33554531
    

    And *epg-error* contains:

    gpg: problem with the agent: Inappropriate ioctl for device
    gpg: error creating passphrase: Operation cancelled
    gpg: symmetric encryption of '[stdin]' failed: Operation cancelled
    



  • oantolin@discuss.onlinetoEmacsSorting in Emacs
    link
    fedilink
    arrow-up
    6
    ·
    1 year ago

    Blatant advertising for one of my packages: Embark has convenient key bindings for all of the commands discussed in this article. If point is on active region and you call embark-act, the s prefix has all of the sort commands there, reverse-region is on r, and delete-duplicate-lines is on d. I tend to forget all the sort commands, so I often call embark-act on a region, press s, and then C-h to get a list of them.