Page 21 of 21

Re: Emacs tips and tricks

Posted: Wed May 08, 2019 11:51 am
by GekkoP

Code: Select all

(use-package goto-last-change
  :ensure t
  :bind ("C-x C-x" . goto-last-change))
Old but always good.

Re: Emacs tips and tricks

Posted: Wed May 29, 2019 1:08 pm
by GekkoP
^ Following those lines: https://github.com/manuel-uberti/goto-last-point

Useful when C-u C-SPC fails you.

Re: Emacs tips and tricks

Posted: Thu Jun 13, 2019 12:24 pm
by GekkoP
Ditched the built-in ansi-color for this: https://github.com/atomontage/xterm-color

M-x shell looks pretty now.

[I know I am alone in my quest for Emacshalla, but I'll keep bothering you people because I love doing it.]

Re: Emacs tips and tricks

Posted: Sat Jul 06, 2019 10:37 am
by GekkoP
Memento mori: https://github.com/lassik/emacs-memento-mori

I don't like too much stuff in my mode-line, so I quickly hacked a solution to have a motivational/scary message as soon as Emacs is loaded:

Code: Select all

(defun mu-display-memento-mori ()
  "Display my current age by leveraging `memento-mori-age-string'."
  (interactive)
  (let ((first-name (car (s-split-words user-full-name)))
        (age (s-trim memento-mori-age-string))
        (msg "%s, you are %s, don't waste your time!"))
    (run-with-timer 2 nil
                    (lambda ()
                      (message msg first-name age)
                      (run-with-timer 3 nil
                                      (lambda ()
                                        (message nil)))))))
And this is the message I see:

Code: Select all

Manuel, you are 34.82 years old, don’t waste your time!
Damn, gotta work harder now.

Re: Emacs tips and tricks

Posted: Tue Jul 09, 2019 10:18 am
by GekkoP
Madness and uselessness are unstoppable: https://github.com/fitzsim/slime-volleyball

Re: Emacs tips and tricks

Posted: Thu Oct 03, 2019 9:05 am
by GekkoP
I moved my setup to https://github.com/raxod502/straight.el

Yes, fun times.

Re: Emacs tips and tricks

Posted: Tue Oct 15, 2019 12:54 pm
by GekkoP
Init time: 0.72521613 seconds

Achievement unlocked, as the kids use to say nowadays.

Re: Emacs tips and tricks

Posted: Wed Nov 06, 2019 3:25 pm
by GekkoP

Code: Select all

(setq-default exec-path (append (parse-colon-path (getenv "PATH")) (list exec-directory)))
And bye bye to exec-path-from-shell.

Re: Emacs tips and tricks

Posted: Fri Nov 29, 2019 10:19 am
by GekkoP
^^ And now: 0.399250765 seconds

I feel like the good ol' days of tweaking Linux boot with pidsley are back.

Re: Emacs tips and tricks

Posted: Fri Jan 10, 2020 11:25 am
by GekkoP
It was bound to happen: systemE, a "lightweight" systemd replacement written in Emacs lisp.

Re: Emacs tips and tricks

Posted: Fri Jan 10, 2020 9:26 pm
by pidsley
^ Interesting. I think calling that a systemd replacement is a little like calling a bicycle an M1-abrams tank replacement. It does show how little an "init" system really has to do, though.