|
----- |
|
--- 92822237 |
|
>Lisp is a family of programming languages with a long history and a distinctive parenthesized prefix notation. There are many dialects of Lisp, including Common Lisp, Scheme, Clojure and Elisp. |
|
|
|
>Emacs is an extensible, customizable, self-documenting free/libre text editor and computing environment, with a Lisp interpreter at its core. |
|
|
|
>Emacs Resources |
|
https://gnu.org/s/emacs/ (Website) |
|
https://github.com/emacs-tw/awesome-emacs/ (Awesome Emacs) |
|
|
|
>Learning Emacs |
|
C-h t (Interactive Tutorial) |
|
https://youtube.com/playlist?list=PLX2044Ew-UVVv31a0-Qn3dA6Sd_-NyA1n (Beginner-friendly Video Series) |
|
https://youtube.com/playlist?list=PLEoMzSkcN8oNmd98m_6FoaJseUsa6QGm2 (Emacs from Scratch) |
|
|
|
>Emacs Distros |
|
https://github.com/syl20bnr/spacemacs/ (Spacemacs) |
|
https://github.com/doomemacs/doomemacs/ (Doom Emacs) |
|
https://github.com/snackon/witchmacs/ (Witchmacs) |
|
https://github.com/pprobst/yukimacs/ (Yukimacs) |
|
|
|
>CL |
|
https://stevelosh.com/blog/2018/08/a-road-to-common-lisp/ (A Road to CL) |
|
https://gigamonkeys.com/book/ (Practical CL) |
|
https://cs.cmu.edu/~dst/LispBook/ (CL: A Gentle Introduction) |
|
|
|
>Scheme |
|
https://scheme.com/tspl4/ (TSPL4) |
|
https://eecs.berkeley.edu/~bh/ss-toc2.html (Simply Scheme) |
|
https://archive.org/details/Schemer/ (Books) |
|
|
|
>Clojure |
|
https://clojure.org (Website) |
|
https://clojuredocs.org (Docs & Examples) |
|
https://mooc.fi/courses/2014/clojure/ (Functional programming with Clojure) |
|
|
|
>Elisp |
|
Emacs docs: C-h f [function] C-h v [variable] C-h k [keybinding] C-h m [mode] M-x ielm [REPL] |
|
https://gnu.org/s/emacs/manual/eintr.html (Aimed at beginners in programming) |
|
https://gnu.org/s/emacs/manual/elisp.html (Elisp Reference Manual) |
|
|
|
>Guix |
|
https://systemcrafters.net/craft-your-system-with-guix/ |
|
|
|
>SICP |
|
https://web.mit.edu/6.001/6.037/sicp.pdf |
|
|
|
>LoL |
|
https://files.catbox.moe/77rqtw.pdf |
|
|
|
>More Lisp Resources |
|
https://pastebin.com/tWQmkX0C |
|
|
|
>Changing Emacs Default Keybindings |
|
https://pastebin.com/2hg4g3C6 |
|
|
|
(def alt-names [/emg/ /emac/ /lol/ /let/ /flet/]) |
|
(swap! prev-thread >>92653036 →) |
|
--- 92822516 |
|
SHUT UP AND HACK! |
|
https://ftp.openbsd.org/pub/OpenBSD/songs/songsh.ogg |
|
--- 92822550 |
|
>>92821810 → |
|
Lain |
|
--- 92822897 |
|
why why why why don't I eval you a lot, forever? /lol/ + /emac/? |
|
https://textboard.org/static/img/abelson-stole-the-precious-course-mit-version.webm |
|
--- 92823093 |
|
Scheme! |
|
--- 92824189 |
|
Clojure 1.12.0-alpha2 release announcement |
|
https://clojure.org/news/2023/04/14/clojure-1-12-alpha2 |
|
--- 92824206 |
|
>>92822237 (OP) |
|
You know it should be reset! right? |
|
--- 92824977 |
|
How do you manage your packages? I like straight.el, but it's too aggressive about pulling dependencies (like bleeding-edge org for any org package). |
|
--- 92825179 |
|
(kill-emacs) |
|
--- 92825847 |
|
Fun fact: EVAL in CL evaluates the given form in the null lexical environment regardless of where it is called. Which means that this: |
|
(defun test-eval (expr) |
|
(let ((y 3)) |
|
(eval expr))) |
|
|
|
(test-eval 'y) |
|
|
|
|
|
Will cause a runtime error since Y is not bound (of course, assuming that there was no dynamic variable named Y defined previously). |
|
|
|
However, if you include the LET bindings in the form itself: |
|
(defun test-eval (expr) |
|
(eval `(let ((y 3)) ,expr))) |
|
|
|
Then (test-eval 'y) will return 3, as you'd expect. Note how backquotes, despite being most often used for macros, can also serve many other purposes. |
|
--- 92826017 |
|
>>92825179 |
|
(makunbound 'christian) |
|
--- 92827544 |
|
>>92821103 → |
|
wtf is a lisp horse |
|
--- 92827855 |
|
"have sex" |
|
https://github.com/zakki/emacs/blob/master/etc/sex.6 |
|
--- 92828320 |
|
>>92822237 (OP) |
|
How do you guys feel about wolfram? It seems to be the preferred langauge used by mathmeticians and physicists and it's very lispy. How would it fare if it wasn't propietary? |
|
--- 92828555 |
|
>>92818228 → |
|
that's your response and I'm the one chugging hfcs? you didn't even refute my point, retard. holy fuck. |
|
--- 92828985 |
|
is use-package useful for a beginner? i kinda want to use it to make things easy but i think it might obscure some elisp that i would otherwise be forced to learn. what do you guys think? |
|
--- 92829072 |
|
>>92828985 |
|
use-package hides to much detail from you. Just use with-eval-after-load, add-hook, define-key, and a few more "primitive" macros/functions first. |
|
--- 92829159 |
|
>>92829072 |
|
yeah thanks i will do that. what do you think about wrapping init.el into an org file? is that actually a good practice or just a youtube meme? |
|
--- 92829183 |
|
>>92829159 |
|
unless you're planning to write a detailed description of your configuration like protesilaos once did, you're better off without "literate programming" |
|
--- 92829404 |
|
I am riding the LISP horse. |
|
--- 92829584 |
|
save-lisp-and-die |
|
--- 92829615 |
|
>>92827544 |
|
She is a horse for maids. |
|
--- 92829794 |
|
>>92829404 |
|
>>92829615 |
|
>forcing the reddit horse |
|
kys |
|
>>>/trash/ |
|
--- 92830613 |
|
>>92828320 |
|
WolframLang is essentially a Lisp. |
|
http://xahlee.info/M/lisp_vs_WolframLang.html |
|
--- 92830822 |
|
what's the best xah article |
|
--- 92830875 |
|
Once again I am sleep deprived to the point of having trouble holding coherent thoughts |
|
Why do I do this to myself fucking hell |
|
--- 92832369 |
|
>>92828555 |
|
Your point was retarded bait without so much as a link to support the claim. Try harder to not be a dumb faggot next time if you want a serious reply. |
|
--- 92832645 |
|
>>92829794 |
|
>reddit horse |
|
I though Reddit has an alien named snoot or something like that? |
|
|
|
Anyways it is hard to find good drawings of anime maids or even just anime girls riding horses. If you know some, post them and I will draw more LISP horse drawings. |
|
--- 92833261 |
|
>>92830822 |
|
>what's the best xah article |
|
the one from 2003 where he reviews prosties in vegas http://xahlee.org/Periodic_dosage_dir/las_vegas/20031015_copulate.html |
|
--- 92835342 |
|
>>92827855 |
|
>ESR |
|
>RMS |
|
Holy based |
|
--- 92836950 |
|
>>92833261 |
|
faaking emacoomer |
|
--- 92838255 |
|
>>92824977 |
|
I use Elpaca, its supposed to replace straight eventually. its made by one of the active straight maintainers |
|
--- 92838567 |
|
>>92833261 |
|
>>what's the best xah article |
|
>the one from 2003 where he reviews prosties in vegas |
|
faaaking madlad |
|
--- 92839634 |
|
>>92823093 |
|
Scheme! |
|
--- 92841430 |
|
>>92829615 |
|
>she |
|
--- 92842710 |
|
hey bros, whats the best fuzzy finder package for emacs? |
|
|
|
i'm writing a script to process thousands of files. right now it just failed because one of the files has a string in the wrong place and i tried casting it as an int. it just gives me the string that it messed up on, so now i want to find the file as painlessly as possible |
|
--- 92842857 |
|
>>92842710 |
|
anything that uses ripgrep, I use consult-ripgrep |
|
--- 92843126 |
|
>>92830822 |
|
The one about closures makes for a good laugh. |
|
--- 92843178 |
|
>>92843126 |
|
This one that is: http://xahlee.info/UnixResource_dir/writ/closure_more.html |
|
--- 92844100 |
|
predicate? > predicate-p |
|
--- 92844291 |
|
>>92844100 |
|
i learned CL first so predicate-p or predicatep feel comfier |
|
predicate? has no soul |
|
--- 92844560 |
|
>>92844100 |
|
.isPredicate |
|
--- 92846215 |
|
>>92841430 |
|
>(((she))) |
|
--- 92846847 |
|
>>92822550 |
|
Lain |
|
--- 92846888 |
|
>>92846882 |
|
--- 92847723 |
|
jisus emac lisp is hard |
|
--- 92849155 |
|
>>92794561 → |
|
Have you read SICP today? |
|
--- 92849198 |
|
>>92846882 |
|
>>92846888 |
|
>what is second/third/fourth/nth |
|
--- 92849346 |
|
>>92849198 |
|
car and cdr is actualy simple |
|
|
|
a = first member of the list |
|
d = remaining members of the list |
|
|
|
first => car |
|
second => cadr |
|
third => caddr |
|
fourth => cadddr |
|
etc.... |
|
--- 92849512 |
|
>>92849346 |
|
This naming convention is one of the things I really dislike about LISP. Your computer is not a fast IBM 704. There is no reason to discuss lists in terms of the registers on a 70 year old computer. If you're going to construct a language in terms of what the machine is doing or where data is kept on the machine, at least pick a machine that had common usage in living memory and not something that only exists in museums and history books. |
|
--- 92849539 |
|
>>92849512 |
|
Head and Tail would be better names for the same concept which are more intuitive. Even the x:xs syntax Haskell uses would be better than car, cdr, cadr..... |
|
--- 92849584 |
|
>>92849512 |
|
Clojure did it right by just using first and rest |
|
--- 92849757 |
|
>>92849584 |
|
>>92849539 |
|
>>92849512 |
|
yes using car/cdr is less readable, so CL provides something else |
|
--- 92850058 |
|
>>92822237 (OP) |
|
Do you guys who use Lisp actually use lists as a data structure in your programs? I'm more used to Clojure and I get the feeling that they basically only use vectors and maps for the most part |
|
--- 92850191 |
|
>>92849512 |
|
You never have to use CAR and CDR ever. In CL at least, FIRST and REST are synonyms of CAR and CDR respectively. Imagine spending so much energy complaining about a literal non-issue. |
|
--- 92850276 |
|
>>92850058 |
|
it depends, sometime i use hash table or array, linked list is slow when accessing data and CL has other data structure besides Linked List |
|
--- 92852062 |
|
>>92846888 |
|
lol |
|
--- 92852675 |
|
>>92849539 |
|
Cons aren't lists, head and tail would be much worse names than car and cdr. |
|
--- 92854369 |
|
https://www.masteringemacs.org/article/why-emacs-has-buffers |
|
--- 92855186 |
|
(defun fact (n) |
|
(let ((result 1)) |
|
(tagbody |
|
iter (if (zerop n) |
|
(return-from fact result) |
|
(progn (psetf result (* result n) |
|
n (1- n)) |
|
(go iter)))))) |
|
|
|
Who said that CL doesn't have guaranteed tail call elimination? |
|
--- 92855909 |
|
what emacs packages would she use? |
|
--- 92856898 |
|
>>92855909 |
|
>what emacs packages would she use? |
|
org-roam to come to realization that everything connected |
|
--- 92857960 |
|
>>92855909 |
|
c-mode, lisp-mode, erc, calendar, diary, tramp |
|
--- 92858108 |
|
what distro should I run Emacs on? |
|
--- 92859584 |
|
>>92858108 |
|
Fedora |
|
--- 92860985 |
|
>>92852675 |
|
>head and tail would be much worse names than car and cdr |
|
why? Seems very intuitive to me. |
|
--- 92861002 |
|
>>92858108 |
|
OpenBSD |
|
OpenSuse Leap |
|
Linux Mint |
|
--- 92861313 |
|
>>92858108 |
|
Whatever you want. I use Pop_os on my home computers and both debian and red hat at work. I have vms with various distros and use emacs on most of them. |
|
--- 92861473 |
|
>>92860985 |
|
because car and cdr are the head and tail of a list. |
|
--- 92861493 |
|
>>92861473 |
|
aren't |
|
--- 92861707 |
|
>>92858108 |
|
whatever you want, in my case i use arch |
|
--- 92861887 |
|
>>92861493 |
|
just in case you don't know what the difference is |
|
--- 92862106 |
|
I forgot to change /etc/aliases during testing and now I may have been blacklisted by gmail because I sent a bunch of ill-configured mail to them |
|
--- 92862219 |
|
>>92861887 |
|
conses aren't used exclusively to represent lists |
|
--- 92862545 |
|
>>92861887 |
|
So there's no body? |
|
I think you don't know what a tail normally is. |
|
--- 92862608 |
|
Just treat a number in the operator position as an index. So car would be (0 something) |
|
--- 92862735 |
|
>>92822237 (OP) |
|
Just rename to /lolemacs/ already (pronounced lolimaxx) |
|
--- 92862848 |
|
>>92862608 |
|
what would (1 '(0 . 1)) return? what would (1 (0 1)) return? |
|
--- 92863711 |
|
>>92862219 |
|
so ? |
|
--- 92863759 |
|
>>92862848 |
|
it's illegal you can't do that |
|
--- 92863876 |
|
>>92863759 |
|
>illegal function call |
|
Reported to the FBI, sick freak. |
|
--- 92863893 |
|
>>92858108 |
|
>>92859584 |
|
>>92861002 |
|
>>92861313 |
|
>>92861707 |
|
are there any issues with using containers like Snap or Flatpak? I want the latest Emacs but am on Debian and don't want to get into dependency hell. |
|
--- 92864643 |
|
>>92863711 |
|
so how is using terminology that only makes sense in reference lists an improvement on car and cdr? |
|
--- 92865074 |
|
>>92863759 |
|
It was a design suggestion, of course it's not going to work if it's not implemented in the language you're using lol. I think either Arc or Bel has this, or something similar that gave me this idea |
|
--- 92865205 |
|
>>92862848 |
|
They would both return 1. Also, I would get rid of the dot notation and distinction between plists & alists. |
|
|
|
A list would just be any non-circular sequence. So they could be implemented as vectors. You would just use declarations if you want it to be a singly linked list, or a vector etc. |
|
--- 92865731 |
|
>>92865205 |
|
So you just want another Clojure clone? |
|
--- 92866272 |
|
>>92865074 |
|
inappropriate |
|
--- 92866357 |
|
>>92865205 |
|
Yes, you can get rid of car and cdr if you just get rid of conses entirely. But as long as you have cons car and cdr are at least as good as any other name. Certainly better than any name making reference to the structure of a list. |
|
--- 92866385 |
|
>>92863893 |
|
kek, classic debian struggles |
|
--- 92866579 |
|
>>92863893 |
|
>>92866385 |
|
Just download the source tarball and run ./configure && make && make install. Yes, it just works on Debian too. |
|
--- 92866618 |
|
>>92852675 |
|
>Cons aren't lists |
|
Yes they are. By definition, in Lisp, a list is either a cons or the special value NIL, which denotes the empty list. |
|
--- 92866768 |
|
>>92866618 |
|
(cons 1 2) isn't a list. It's a pair. |
|
It's called LISt Processing, not CONs Processing. There is no good reason to not restrict a list cons pair to only point to a list or nil in its cdr |
|
--- 92866845 |
|
>>92865205 |
|
So would you get rid of alists or plists? If you get rid of cons cells theydo not magically become the same. |
|
--- 92866858 |
|
>>92866768 |
|
listp === (or consp null) |
|
You're conflating lists and proper lists. |
|
--- 92868736 |
|
>>92858108 |
|
install guix |
|
--- 92868942 |
|
>>92866768 |
|
Whatever you want to call it, a list in Lisp is either NIL or a pair. |
|
--- 92870382 |
|
>>92855909 |
|
wired-mode |
|
--- 92871285 |
|
>>92866858 |
|
>him: you define lists wrong |
|
>you: no, I define lists the way you say is wrong and some people agree with me |
|
Stupid response. |
|
--- 92871744 |
|
>>92866768 |
|
>>92865205 |
|
Really the issue isn't cons, it's a lack of more robust compiler hinting/constraints/types. |
|
For example, just keep using cons as much as you want, but just put in a type declaration saying "this is actually a proper list" or "this is a tree" that lets the compiler know to just optimize away all accesses to list/tree operations. |
|
--- 92872265 |
|
>>92871744 |
|
Nobody in this thread is complaining about performance of cons cells. How exactly would these type hints help a compiler in any meaningful way? |
|
--- 92872276 |
|
I really don't understand why people dislike car and cdr. I guess lisp has seeped deep enough in my brain |
|
|
|
I remember when I was beginning a few years ago and I posted about how I found the CL syntax ugly compared to scheme, and an anon replied saying CL's syntax is like a living record of its history, names like terpri and rplacd tell us about the language's past while still doing their job. I think car/cdr has the same importance, so much that even scheme, the perfectionist one, never adopted head/tail or anything like that. |
|
--- 92872546 |
|
>>92871285 |
|
What lisp disagrees with him? If you want to argue about a technical term then there's no higher authority than the in-practice definition. "Proper list" refers to the concept anon was talking about, so it's not like there's a hole in the verbiage. |
|
--- 92872747 |
|
>>92871744 |
|
That optimization might imply that code manipulating cons cells would be compiled down to code accessing a contiguous array of memory, for example. If you want to maintain the semantics of the cons cell, including at runtime, that kind of type hint could not be meaningfully acted upon. |
|
If you have to consciously decide to tag a list as a list, thereby enforcing those semantics at runtime, then manually converting the list into an array would be just as straightforward and doesn't require any compiler shenanigans. |
|
--- 92872869 |
|
>>92866858 |
|
You're conflating ordered pairs and lists. Lists are a special case of ordered pairs |
|
--- 92872958 |
|
>>92872546 |
|
>proper list |
|
This is a stupid way of looking at it. |
|
A list, by any sane person's definition, is an ordered collection of elements. |
|
It is not an arbitrary tree of pairs. |
|
The "improper" lists of lisp are not lists. |
|
>What lisp disagrees with him? |
|
Many, but Clojure is the most prominent. |
|
That said, most lisps which incorrectly define the type "list" agree on the right definition in practice. |
|
The marjority of functions which take "list"s actually take lists and fail when presented with improper ones. |
|
The only reason "list" is defined as (or cons null) is because it would be expensive to check an entire tree every time you want to check if something is a list. |
|
Likewise, the only reason a cdr can be an arbitrary element is for performance. |
|
It saves a type check when constructing a list and allows pairs to be allocated in as a single cons instead of a list of two elements. |
|
Anywhere that an improper list appears, it would be better to use a list. |
|
The only reason not to is performance. |
|
--- 92873065 |
|
>>92872958 |
|
That's all fair. The only objection I'd levy is that the head of a chain of cons cells which looks very much like a list but whose final cdr is non-nil either represents the head of a list which doesn't finish, or doesn't represent the head of a list at all. It's at least a bit of a reason to think about improper lists. In any case I agree that cons cells are principally pairs and not lists. |
|
--- 92873588 |
|
I'm gonna do it bros, I'm gonna try one more time to replace lsp-mode, the last remaining big "third-party" package in my config, with eglot |
|
--- 92873713 |
|
>>92873588 |
|
what do you use for email? |
|
--- 92873752 |
|
>>92873713 |
|
I don't handle email with emacs |
|
--- 92874075 |
|
>>92872276 |
|
Personally I don't like how it's right to left and kinda awkward to use in macros. Instead of (cdadaddaar head) you'd have (cr #*00110101 head) |
|
--- 92875241 |
|
>>92872958 |
|
Whatever this hypothetical "sane person" believes is a list is irrelevant. |
|
|
|
Lisp stands for LISt Processing, but before we can talk about "list processing", we have to agree on what a list is. In Lisp, a list is either a cons or the special value NIL, which denotes the empty list. |
|
|
|
You're free to see lists as something else, but Lisp disagrees with you. |
|
--- 92875443 |
|
>>92872276 |
|
car and cdr is great I dont see the big deal. Even things like cadar are fine. Plus if you are not sure what it does there is always repl |
|
--- 92876822 |
|
>>92863893 |
|
apt install guix |
|
--- 92877035 |
|
Unpopular take: Emacs lisp is actually a good lisp. |
|
--- 92877106 |
|
>>92863893 |
|
seconding guix |
|
|
|
don't turn your install into a frankendebian over this |
|
--- 92877308 |
|
>>92872276 |
|
>I really don't understand why people dislike car and cdr. |
|
I don't dislike them, but the naming is definitely cryptic to the uninitiated. |
|
I think the other filter is just the frequency of using recursive linked list semantics over array or vector semantics. |
|
--- 92877404 |
|
>>92877035 |
|
How do you push to a vecor in elisp? |
|
--- 92877840 |
|
sometimes i think i like lisp because i'm shit at programming and not in spite of it |
|
--- 92878048 |
|
>>92877840 |
|
Well scheme is commonly used as a teaching tool for a reason. Simplicity and elegance are two sides of the same coin; it's understandable to stumble over whatever is going on in java land or to be annoyed by c-style syntax. |
|
--- 92878089 |
|
>>92878048 |
|
i read somewhere that one should learn another language first before learning a lisp because once you learn lisp all other languages are not as fulfilling. do you think this is true? |
|
--- 92878291 |
|
when I'm in rust mode, eldoc shows documentation like this: |
|
core::cmp |
|
|
|
pub const fn max<T>(v1: T, v2: T) -> T |
|
where |
|
T: Ord + Destruct, |
|
|
|
but when I put the point over that function, only core::cmp shows in the echo area, and I want to see the third line only |
|
|
|
has anyone got this working? I fucking hate having to open a buffer just for eldoc to show me a function signature |
|
--- 92879748 |
|
>>92830875 |
|
t'happens all the time to me as well |
|
--- 92879893 |
|
>>92830875 |
|
>>92879748 |
|
bros don't neglect your sleep. |
|
getting enough sleep is the most important thing you can do to improve your quality of life |
|
--- 92880368 |
|
>>92878089 |
|
No. There are plenty of languages with interesting ideas that do not overlap with lisp (eg erlang, APL, prolog). |
|
--- 92881044 |
|
>>92878089 |
|
it's kinda true but not really. lisp isn't the only good language but it's one of the easiest good languages, which is why it gets recommended often to plebs. |
|
--- 92881074 |
|
>>92862106 |
|
OK I think I set everything up correctly, I can send mail to gmail from my server and it doesn't immediately land in spam. |
|
My brain feels like it's about to melt though - normally I try to thoroughly understand any config I do but a modern email stack + all its configuration options seems to be a scary rabbit hole. |
|
They even have a dedicated programming language called sieve to manage spam. Actually not too surprising but still I was not expecting it to go this deep. |
|
--- 92882557 |
|
Hacker news jerkoffs are talking about emacs again |
|
--- 92882971 |
|
>>92882557 |
|
oh boy |
|
--- 92884192 |
|
>>92882971 |
|
absolute midwit, exactly 100 IQ, not dumb enough to get lost in the joys of ricing and not smart enough to actually make emac productive |
|
--- 92884515 |
|
>>92884192 |
|
looks like a troll to me, honestly. /g/-tier bait. |
|
--- 92884582 |
|
>>92882971 |
|
how is installing eglot so hard for some people |
|
--- 92884803 |
|
Then there's this fag. |
|
Apart from being pure r*ddit, he makes a reasonably good observation that vi is more oriented toward people who like to stay around home row, then immediately dives into the binary-brain, identify-focused conclusion that you're either "a touch-typist" or "a hunt-and-peck" typist. |
|
|
|
How about just using touch-typing to write normal text but preferring to just move your hand to arrow keys for navigation? For me navigating just means moving my right hand slightly to rest over the arrows, where my thumb can easily access r-ctrl and r-alt as well as all the keyboard navigation keys (PgUp/Dn/etc). It's very comfortable and fast. The only downside is that it becomes very difficult for me to use weird keyboards-- I vastly prefer a standard layout with the navigation keys in all their standard locations. |
|
--- 92884939 |
|
>>92884803 |
|
this problem is largely eliminated by swapping ctrl and caps lock |
|
--- 92885757 |
|
emac |
|
--- 92886163 |
|
>>92882971 |
|
>4 hours setting up colors |
|
Yea sure that really happened |
|
Even if it took 2 days to set up I would still prefer emacs to VS code. |
|
--- 92886489 |
|
>>92861887 |
|
Where did you learn list terminology like this? |
|
--- 92887229 |
|
>>92884803 |
|
There is no universe in which that is a reasonably good observation. In fact their new take is an order of magnitude worse than some teenager determining Emacs as "stupid" because it ran slowly on their computer. |
|
--- 92887310 |
|
>>92882971 |
|
I agree that Emacs has terrible defaults, but Doom Emacs is pretty nice. The big downside is that the additional layer of complexity means that it's harder to configure. |
|
--- 92887370 |
|
>>92877840 |
|
I can't remember complex syntax and I find all the inheritance BS in OOP very confusing. |
|
--- 92887555 |
|
C-h k and C-h c not works for C-u s in dired mode |
|
I want to check what C-u s does in dired mode |
|
--- 92887864 |
|
>>92877840 |
|
>>92887370 |
|
I belive programing should be simple and an average person should be able to learn how to do stuff within a month. And yes syintax should be easy to remember and easy to parse. Even if I was 10 times better at programing ( i dont consider poeple with no life that memorise all syintax quirks good at programing) Im talking about ideas how to solve problems I would still use lisp because I want to do stuff not fuck around with syintax. And yes forcing oop on poeple is retarded there was a video showing how opp is never actually implemented as it is taught of and that it makes poeple think more under which object should this function be than actually solving the problem. Naturally i favor procedual and functional It just suits me. I cant see the point those languages with features and features on top of oop like java dependency injections beans and other shit. |
|
--- 92888640 |
|
Personality test, which do you most identify with? |
|
--- 92888699 |
|
how can i refresh dired buffer fully??? |
|
i have this function |
|
(defvar my/dired-listing-default "--group-directories-first -lAFh") |
|
(setq dired-listing-switches my/dired-listing-default) |
|
(defun my/dired-cycle-listing-switches () |
|
(interactive) |
|
(let* ((current dired-listing-switches) |
|
(change (cond ((string= current my/dired-listing-default) "-lv1") |
|
((string= current "-lv1") "-lX") |
|
((string= current "-lX") my/dired-listing-default)))) |
|
(setq dired-listing-switches change) |
|
(revert-buffer) |
|
(message "Flags switched from %s to %s" current change))) |
|
|
|
|
|
and revert-buffer just not works, it only works in future opened buffers |
|
--- 92888994 |
|
>>92888699 |
|
Add this above revert-buffer: |
|
> (setq dired-actual-switches dired-listing-switches) |
|
Credit goes to ChatGPT. |
|
--- 92890635 |
|
>>92888994 |
|
I also use chat gpt for writing new functions (also this) but it didnt mention about this variable to me |
|
|
|
Thank you mate |
|
--- 92890717 |
|
Can somebody tell me why should I use any of the Lisps instead of something fast and reliable and more supported like C/++ and Rust? |
|
|
|
The syntax is nice and all but what's the point exactly? I haven't seen anything written worthwhile in Lisp. Please convince me. |
|
--- 92890778 |
|
>>92890717 |
|
it'll change your way of thinking how to solve a problem |
|
you may not use lisp at a later part of your life, but the learning experience pays off when you program in other languages |
|
|
|
it's also fun conjuring the spirit of the computer with your spells, so you might as well try it |
|
--- 92891282 |
|
>>92890717 |
|
if you don't see an intrinsic appeal in learning something new, or if you don't think lisp looks cool from the outside, it's not my job to convince you |
|
|
|
lurk the thread, read something about lisp and maybe you'll find a reason |
|
--- 92891583 |
|
>>92890717 |
|
if you find cpp and rust easy and dont see the point then your brain is autistic and you sure as hell wont get it why poeple prefer lisp to those giberish languages that take 10 years to master. If you somehow see that c syintax is giberish but useful for speed you can use lisps simplicity and c speed with ffi |
|
--- 92892165 |
|
>>92891583 |
|
Your reading comprehension is shit. It isn't about what's easy or not, it's about why use something that it's community is small and hasn't made anything worthy of discussing. Go to JewTube and you'll see plenty of videos on JS, Python, C/++, Rust in particular but barely anything about Lisp. |
|
--- 92892241 |
|
>>92892165 |
|
so what little stuff we have is good. Instead of picking from 1000 libraries for x lisp has 3 and its easy to extend them. The lisp curse is real because most of lispers are individualists and lazy. |
|
--- 92892822 |
|
>>92890717 |
|
>Can somebody tell me why should I use any of the Lisps instead of something fast and reliable and more supported like C/++ and Rust? |
|
If you need the performance of C/++ or Rust then you shouldn't use Lisp. However, if you don't need the performance then a Lisp will be faster and nicer to develop in. |
|
When it comes to support, Clojure's access to the JVM is convenient. |
|
--- 92892884 |
|
>>92892165 |
|
>Go to JewTube and you'll see plenty of videos on JS, Python, C/++, Rust in particular but barely anything about Lisp. |
|
JS, Python, and C/C++ are popular because they work how you expect. call functions line by line, and branch with keywords. just like programming languages should work. |
|
|
|
lisp on the other hand, is completely incomprehensible parentheses slop, thats why its community is basically non existent. |
|
--- 92893010 |
|
(defun samedi/backwards-delete () |
|
"A replacement for C-<backspace> with behavior similar to other text editors." |
|
(interactive) |
|
(let ((at-space (looking-back "[ \t\n]"))) |
|
(while (eq (looking-back "[ \t\n]") at-space) |
|
(backward-delete-char 1))) |
|
|
|
any improvements I could do? |
|
--- 92893208 |
|
>>92890717 |
|
Stupid comparison. Almost all notable Lisps are dynamically typed by default. |
|
>>92892165 |
|
Try doing some basic homework before asking stupid questions. You deserve to get shit on. |
|
> hasn't made anything worthy of discussing. |
|
This isn't true at all. You should at least do a bare minimum of work on your own before you come in here swinging. I'm not going to spoonfeed you ELI answers for acting like a jackass. |
|
--- 92894898 |
|
>>92879893 |
|
thanks emacbro |
|
--- 92895197 |
|
emac lisp |
|
--- 92895708 |
|
Is emacs a good alternative to LaTeX? |
|
--- 92895743 |
|
>>92895708 |
|
Am sorry, i mean org-mode. |
|
--- 92896015 |
|
>>92895708 |
|
>>92895743 |
|
>is emacs a good alternative to org-mode? |
|
--- 92896328 |
|
>>92895743 |
|
these things are not comparable |
|
you're doing something wrong with latex or org mode |
|
--- 92897011 |
|
>>92896328 |
|
I want to format documents for my college assignments, with org mode can i archive the same formats as in latex? |
|
--- 92897839 |
|
>>92846215 |
|
> (equal she (he))) |
|
t |
|
> |
|
|
|
--- 92898812 |
|
>>92897011 |
|
yes you can, but its not clear what format youre trying to achieve. Org-mode can covert an org doc to latex via org-export. |
|
|
|
https://orgmode.org/manual/LaTeX-Export.html |
|
|
|
if you have a good idea of how your document should look like and function, see if org-export supports the features you need. |
|
--- 92899161 |
|
>>92822237 (OP) |
|
>/lol/ + /emac/ |
|
/lolimac/ |
|
--- 92899312 |
|
>>92887555 |
|
C-u is universal argument so you should be doing C-h k s and the documentation will specify how the behaviour changes when given C-u. |
|
--- 92899509 |
|
C-u M-! |
|
--- 92899975 |
|
>>92886163 |
|
>2 days |
|
>proceeds to creat his own theme from scratch |
|
haha, yea.. |
|
--- 92901629 |
|
>>92899161 |
|
very smol emac |
|
--- 92901637 |
|
emac |
|
--- 92903976 |
|
save-lisp-and-die |
|
--- 92905758 |
|
>>92858108 |
|
Debian/Devuan GNU/Linux |
|
--- 92907280 |
|
this is my function to sort stuff in dired mode |
|
throughs? |
|
(defvar my/dired-listing-default "--group-directories-first -lAh") |
|
(setq dired-listing-switches my/dired-listing-default) |
|
(defun my/dired-cycle-listing-switches () |
|
(interactive) |
|
(let* ((old-suffix (replace-regexp-in-string my/dired-listing-default "" dired-listing-switches)) |
|
(new-suffix (cond ((string= old-suffix "") "v1") |
|
((string= old-suffix "v1") "X") |
|
((string= old-suffix "X") "")))) |
|
(setq dired-listing-switches (concat my/dired-listing-default new-suffix)) |
|
(message "Additional sorting flags switched from %s to %s" |
|
(propertize (format "%s" old-suffix) 'face 'bold) ;; bold text |
|
(propertize (format "%s" new-suffix) 'face 'bold))) |
|
(setq dired-actual-switches dired-listing-switches) |
|
(revert-buffer)) |
|
(global-set-key [remap dired-sort-toggle-or-edit] 'my/dired-cycle-listing-switches) ;; s key in dired buffer |
|
--- 92907381 |
|
>>92863893 |
|
the issue with Fedora is that it breaks after a month or so |
|
--- 92907811 |
|
>>92893010 |
|
>C-<backspace> with behavior similar to other text editors? |
|
like what, gedit works like emacs |
|
|
|
|
|
ChatGPT says: |
|
Your function samedi/backwards-delete seems to be working as expected. However, if you want to improve it, here are some suggestions: |
|
|
|
Instead of calling looking-back twice, you can store the result in a variable: |
|
|
|
csharp |
|
|
|
(let ((prev-char (char-before))) |
|
(when (eq prev-char ?\s) |
|
(backward-delete-char 1))) |
|
|
|
You can use the skip-chars-backward function to skip over whitespace characters: |
|
|
|
arduino |
|
|
|
(skip-chars-backward " \t\n") |
|
(delete-region (point) (point-at-eol)) |
|
|
|
If you want to delete the entire line when the cursor is at the beginning of the line, you can use the delete-region function to delete the region from the beginning of the line to the current point: |
|
|
|
arduino |
|
|
|
(if (bolp) |
|
(delete-region (line-beginning-position) (point)) |
|
(progn |
|
(skip-chars-backward " \t\n") |
|
(delete-region (point) (point-at-eol)))) |
|
|
|
Here's the updated function: |
|
|
|
arduino |
|
(defun samedi/backwards-delete () |
|
"A replacement for C-<backspace> with behavior similar to other text editors." |
|
(interactive) |
|
(if (bolp) |
|
(delete-region (line-beginning-position) (point)) |
|
(progn |
|
(skip-chars-backward " \t\n") |
|
(delete-region (point) (point-at-eol))))) |
|
|
|
This updated function will delete whitespace characters and delete the entire line when the cursor is at the beginning of the line. |
|
--- 92909320 |
|
>>92888640 |
|
I'm B.ased |
|
--- 92910808 |
|
>>92855909 |
|
evil-mode |
|
https://www.emacswiki.org/emacs/Evil |
|
--- 92911289 |
|
>>92884803 |
|
I recall arguing with a retard making that same argument here. I made the argument that it doesn't matter if Vi is more home row-oriented, because once you start typing, your hand is going to get out of the home row anyway. Also, his argument for the meta key is wholly irrelevant, since you can hit it with either your left or right thumb. |
|
--- 92911491 |
|
3 minutes! |
|
--- 92911611 |
|
>>92907811 |
|
one of my biggest problems with emac has always been how C-backspace deletes too much. it conditioned me to stop using that keybinding because it always deleted a lot more than I wanted |
|
|
|
my function deletes all whitespace if the character immediately before the point is whitespace, or all non-whitespace if the point is on a word |
|
--- 92911746 |
|
>>92911611 |
|
checkout https://github.com/hrehfeld/emacs-smart-hungry-delete/ |
|
--- 92913455 |
|
>>92910808 |
|
https://github.com/emacs-evil/evil |
|
--- 92914936 |
|
>>92882971 |
|
ngl gr8 b8 lol |
|
--- 92915069 |
|
>>92887310 |
|
Emacs has perfectly reasonable defaults. |
|
--- 92915113 |
|
>>92890717 |
|
If you need to ask this question, the answer is: don't bother. |
|
--- 92915386 |
|
>>92893010 |
|
I'll try messing that one, mostly adding more whitespace characters. My main annoyance with backward-kill-word is that it doesn't count underscores as whitespace. |
|
--- 92915975 |
|
>>92855909 |
|
she probably rewrote emacs in CL. |
|
--- 92916799 |
|
>>92822237 (OP) |
|
anybody have specific tutorial on how to load c written libraries into guile? |
|
--- 92916930 |
|
>>92887864 |
|
>( i dont consider poeple with no life that memorise all syintax quirks good at programing) |
|
sepples devs on suicide watch |
|
--- 92917194 |
|
>>92884803 |
|
emacs becomes godly if you remap caps lock to ctrl. Especially combined with god-mode. |
|
--- 92917740 |
|
>>92916799 |
|
I think this pretty much gives you everything you need to know doesn't it? |
|
>>92822237 (OP) |
|
Some of it is written a bit like a tutorial with examples |
|
--- 92917762 |
|
>>92916799 |
|
>>92917740 |
|
woops, don't know how my link ended up pointing to the OP, but it should have been this: https://www.gnu.org/software/guile/docs/docs-2.2/guile-ref/Foreign-Function-Interface.html |
|
--- 92917874 |
|
>>92917194 |
|
never saw a need for remapping ctrl to caps. I just curl my pinky to press it |
|
--- 92919763 |
|
>>92914936 |
|
I r8 8/8 m8 |
|
--- 92921467 |
|
M-x gas-mode |
|
--- 92921571 |
|
what are some of you favorite but not well know emacs packages? |
|
--- 92921681 |
|
new xah talk show just faaking dropped |
|
https://www.youtube.com/watch?v=vdiYO0YfEus [Embed] |
|
--- 92921713 |
|
>>92921681 |
|
--- 92921898 |
|
>>92921681 |
|
>https://www.youtube.com/watch?v=vdiYO0YfEus [Embed] |
|
come say hi in the chat |
|
--- 92923690 |
|
http://informatimago.free.fr/i/linux/emacs-on-user-mode-linux.html |
|
--- 92923997 |
|
>>92921571 |
|
ialign and zones are probably the only two packages I use that are even close to obscure (unless you want to count icomplete which isn't obscure but does seem to get dismissed out of hand when people go looking for an incremental completion UI package) |
|
--- 92926089 |
|
Anyone have luck styling their Qt apps in Guix? I installed qt5ct, and added the appropriate /etc/environment variable in my system config, but changes made in qt5ct do not apply to any other Qt app on my system. I really don't know what to do at this point, I am guessing there is some Guix specific path I need to be setting in the qt5ct config, or some other environment variable needs to be set, but I have no idea what. |
|
--- 92927278 |
|
>>92923997 |
|
>icomplete |
|
isnt that replaced by fido-mode in emacs 28? |
|
--- 92928914 |
|
>>92917874 |
|
I can't curl my pinky very fast, if you can then great but I still bet you'll be able to do it faster if you use caps lock since you're pinky is on 'a' normally which is right next to it whilst l-ctrl is very far away. |
|
--- 92928944 |
|
>>92917762 |
|
thanks for the reference it's worked out well. I've run into an issue now, I want to call a function with some arguments from C and some from scheme. Is the only solution global variables? |
|
--- 92930637 |
|
>>92921681 |
|
faaaking fantastic |
|
--- 92930806 |
|
>>92858108 |
|
Windows |
|
|