/emg/ - Emacs and Lisp General

Kyoto Common Lisp edition

>General Emacs resources
gnu.org/software/emacs/manual/emacs.html (GNU Emacs Manual)
emacswiki.org (Emacs Wiki)
github.com/emacs-tw/awesome-emacs (Big list of packages)
github.com/thinkhuman/writingwithemacs (Tips for prose writing in Emacs)

>Tutorials
C-h t (Interactive Tutorial)
gnu.org/software/emacs/tour (GNU Emacs Tour)
youtube.com/playlist?list=PLX2044Ew-UVVv31a0-Qn3dA6Sd_-NyA1n (General Introduction)
youtube.com/playlist?list=PLVtKhBrRV_ZkPnBtt_TD1Cs9PJlU0IIdE (Org Mode)
youtube.com/playlist?list=PL8Bwba5vnQK14z96Gil86pLMDO2GnOhQ6 (Advanced Configuration)

>(Self) Documentation
C-h k (Keybinds)
C-h o (Functions and Variables)
C-h i (Assorted Manuals)

>Premade Configs
=Make your own=
github.com/hlissner/doom-emacs/tree/develop (Doom Emacs)
github.com/syl20bnr/spacemacs (Spacemacs (heavy))
github.com/snackon/Witchmacs (Witchmacs)

>Reduce Startup Time
use-package defer
pastebin.com/mrPsnUas (Disable GC during startup)
emacswiki.org/emacs/EmacsAsDaemon (Emacs as Daemon)
akrl.sdf.org/gccemacs.html (Native Compilation, stable, merged into Emacs 28)
emacswiki.org/emacs/SetupEl

>Changing Default Keybinds
pastebin.com/2hg4g3C6

>Programming resources for Emacs Lisp, Common Lisp, Scheme and Clojure:
pastebin.com/nyTQp7qi
>Troubleshooting
If there seems to be a bug (or complicated issue), anons may ask you to compose an MWE (minimum working example).
To create an MWE, try the following:
1) start emacs with "emacs -q". This disables your init.
2) try to reproduce your issue with as few settings changed and packages (manually) loaded as possible.
These steps ensure that other anons can replicate your problem if it's something more involved. Sometimes you even find the cause yourself this way, too!

>previous thread

Attached: common lisp.jpg (249x346, 20.34K)

Other urls found in this thread:

orgmode.org/)
logseq.com/)
roamresearch.com/)
athensresearch.org/)
twitter.com/SFWRedditGifs

>Org mode (Elisp, orgmode.org/)
>logseq (Clojure, logseq.com/)
>Roam (Clojure? and Datomic, roamresearch.com/)
>Athens (Clojure, athensresearch.org/)
Why are there so many note taking applications using Lisp?

Because lipsfags are the kind of autists that love that stuff

4 isn't that many.

Maybe, I've just noticed them recently.

Data mining time
>your Emacs version?
>Vanilla keybinds? Evil? XFK? etc?
>Vanilla Emacs? Doom? Spacemacs? etc?
>do you do Common Lisp?
>do you do Scheme? Which implementation?
>do you do Clojure?
>any other Lisp? (that lua one, that erlang one, etc?)

(setq magit-commit-ask-to-stage 'stage
magit-save-repository-buffers 'dontask)
Such a little QOL improvement I have missed for so long.

28.0.91
EVIL
Vanilla
SBCL
Guile
Yes, haven't tried ClojureScript though.
Not really, but I'd like to. I think LFE is interesting because of BEAM.

27.2
evil
vanilla
no
no
no
no, just elisp for my config

Scheme...

Attached: FLj_iT3aUAAo3Ak.webm (1032x850, 54.62K)

27.2
XFK
I did. Looking to relearn CL with ABCL.
Kawa.
No.
No. I want to try hy (Lisp on Python) though but I'm too lazy for that right now.

>common lisp
>can't even run any program on more than four implementations

An example of those programs?

>>your Emacs version?
27.2
>>Vanilla keybinds? Evil? XFK? etc
vanilla
>>Vanilla Emacs? Doom? Spacemacs? etc?
custom vanilla
>>do you do Common Lisp?
sometimes
>>do you do Scheme? Which implementation?
guile, because I use Guix
>>do you do Clojure?
no
>>any other Lisp? (that lua one, that erlang one, etc?)
no

27
vanilla mostly I override for various things, when I want vim I use Nvim
vanilla emacs, I can use packages
used to do open source dev with lispworks and sbcl. clisp sucks and the maintainers are anuses
Not much time with Scheme
Clojure yes have even been paid for it
not recently

this, but 29 native compile, no evil

scheme

Attached: memesmith 101 portrait asset 1.png (1080x1920, 413.75K)

How do I reverse some lines in emacs?

Retard here, what does this warning mean?
"Defining as dynamic an already lexical var"

One of my custom functions stopped working after updating to Emacs 28.

;; cringe: abs repeats 2 whole times!!!
(let ((sum (abs (loop for j from 0 below cols unless (= i j) sum (aref matrix i j))))
(item (abs (aref matrix i i))))
...)

;; based and clean
(destructuring-bind (sum item)
(mapcar #'abs
(list (loop for j from 0 below cols unless (= i j) sum (aref matrix i j))
(aref matrix i i)))
...)

Why am I such an autist?

Show the function

>Dynamic var
(defvar *use-stars* 10)
(defun print-stars () (print *use-stars*))
(defun lel ()
(let ((*use-stars* 5))
(print-stars)) ;; => 5
)
(lel) ;; => 5
(print-stars) ;; => 10


>Lexical
>Defvar should NOT be used for it, otherwise it becomes dynamic
(defun print-stars () (print no-stars))
(let ((no-stars 10))
(print-stars)) ;; => ERROR: UNDEFINED VARIABLE `NO-STARS'

In this case, X and Y are lexical variables.

>X and Y
meant NO-STARS

Here is the function in question:

(defun my/desktop-enable ()
"Add the buffers from the last saved session to the current one, and enable autosave on quit."
(interactive)
(let ((desktop-load-locked-desktop "ask"))
(desktop-read)
(desktop-save-mode 1))
(message "Previous session loaded"))