#elisp
Explore tagged Tumblr posts
mirqmarq428 · 1 year ago
Text
How do we directory in common lisp? Missing f.el rn
3 notes · View notes
laejoh · 2 years ago
Text
having fun with the tumblr api, looking for conversations!
This elisp function in emacs lets me retrieve conversations from tumblr! The api doesn't have any documentation about /conversations.
The sid cookie was edited of course. I don't want my private conversations to show up here.
(let ((url-request-method "GET") (url-request-extra-headers `(("authorization" . "bearer") ("cookie" . "sid=aWX8ldphBKnKvrnStFz0jHRttkdfmvNhlfKHJnrdyxgl.a"))) (url-request-data "fields%5Bblogs%5D=avatar%2Cname%2Cseconds_since_last_activity%2Curl%2Cblog_view_url%2Cuuid%2Ctheme%2Cdescription_npf%2Cis_adult%2C%3Fprimary&participant=t%3Y-T8aKdASPs_51V8TQ")) (with-current-buffer (url-retrieve-synchronously "https://www.tumblr.com/api/v2/conversations") (buffer-string)))
Have fun exploring!
4 notes · View notes
bisexual-engineer-guy · 21 days ago
Text
The lisp experience.
* (Oh, these parentheses I keep opening?
* (I'm collecting them.
* (Right now, I'm 1,762 parentheses deep.
* (Oh, my precious parentheses... (I don't ever want to close them!
38K notes · View notes
unixbhaskar · 1 year ago
Video
youtube
Emacs Elisp If Else Construct To Decide Running Mode 2024_07_06_02:57:09
0 notes
monaddecepticon · 6 months ago
Text
Oh yeah. Elisp without lexical binding and cl-lib is torture.
For those of you following my "emacs on android" exploits
I was playing the Owlcat 40k Rogue Trader game (I don't think the following will spoil anything but you know, read on on your own risk) when presented with the following message while using a cogitator:
Tumblr media
I was sure that this was encoding an item I need so I took a photo and used google lens to copy the text (I always try tesseract cli first but it never produced a correct result so far)
I tried to paste it to an online tool but it expected the numbers to be partitioned in eights so I guessed might as well write the whole thing in elisp:
Tumblr media
Well as they say technically correct is the best kind of correct. Some "#b%s" indeed. I don't know what I expected.
But using #'read is always fun and I did manage to solve it so I had a good time...
13 notes · View notes
mirqmarq428 · 1 year ago
Note
You into programming? Any languages of choice? Any projects you are willing to talk about?
Yes, i program for fun and efficiency. im addicted to Emacs, so elisp is sort of my default language at the moment. I keep trying to get into Common Lisp, and if i got a chance to sit down with StumpWM again that would be great.
I'm also quite fond of PowerShell. Imo it's about as close to lisp as you can get with sh-like syntax, and on windows it's completely overpowered (iv written briefly about this a while back, search my #powershell tag).
Projects? I tend to get just far enough in on something to use it okay for myself, then it never get polished. For example i made an Emacs plugin to change and view GNOME settings, but you have to touch the files first or it won't do anything - and i use it like twice a year so the pressure to fix that "bug" is essentially zero. Same sort of thing with the hyprland-esque wallpaper generator - i got a third of the way thru porting it to Windows/Mac and just kinda haven't picked it up since. Also with that one i had the brilliant idea of writing the git branch and remote names in kanji, so there might be even weirder bugs outside of UTF-8 Linux. Lol
0 notes
laejoh · 2 years ago
Text
Use GNU Emacs - The Plain Text Computing Environment
Use GNU Emacs - The Plain Text Computing Environment (With a number of lovely quotes at the beginning:
Using Emacs is kind of like making a piece of art. You start with a big block and you slowly chip away, bringing it closer and closer to what you want. —Mary Rose Cook
[Emacs is] a Lisp Machine with several compatible user interface modalities. Which is just amazingly helpful to [blind] people like me […] who are typically forgotten about these days. […] Emacs is a shining beacon in a dark age of canvases and decorative user interface design. —Mario Lang
It wouldn’t make sense to start out with anything other than Emacs. I don’t think there has been a piece of software which has had a larger impact on my life. I began using this about fifteen years ago, and it has followed me across operating systems, jobs, roles (I used it to manage my teams), languages, and needs. Every time I start something new, Emacs has been there to make it just a little easier, and the more I do in it, the easier everything gets. I believe this power comes from Emacs being the closest thing we have to a working Lisp Machine. —Katherine Cox-Buday
Emacs outshines all other editing software in approximately the same way that the noonday sun does the stars. It is not just bigger and brighter; it simply makes everything else vanish. —Neal Stephenson
Emacs is the King of Editors because it’s a Lisp interpreter. Each and every key you tap runs some Emacs Lisp code snippet, and since Emacs Lisp is an interpreted language, that means that you can configure any key to run any arbitrary code. You just, like, do it. —Lars Magne Ingebrigtsen
I’m using Linux. A library that Emacs uses to communicate with Intel hardware. —Erwin, #emacs, Freenode
OSs and GUIs come and go, only Emacs has lasting power. —Per Abrahamsen
I am large, I contain multitudes. —Walt Whitman) (🔁) (mapcar #'emacsomancer objs) (@[email protected]) 2023-03-03 09:57:02
1 note · View note
pillowspace · 2 years ago
Note
dunno if you've answered this before or get asked a thousand times now. Do you have any tips on drawing Sun's rays? also how many to draw? I'd see ppl do usually 7 (3 each side and 1 on top)
It's easier to figure out the placements of the rays after drawing the face first. You may see me doing that here
If you're drawing the rays at an angle, it can be good to draw lines within the rays that show the sides of them. The edges. You can be neat with this, oooor just messy and it'll still look fine
Tumblr media Tumblr media Tumblr media Tumblr media
Also, again. If there's an angle, the rays on the further side of the face can be drawn much smaller, and more disconnected from each other. Disconnected, because you cannot see the base of the rays from the angle you are seeing from.
I personally prefer 7 rays. It's up to whatever's more comfortable for you. It's a stylistic choise, but I like to draw the bottom rays slightly smaller than the rest
206 notes · View notes
piratesexmachine420 · 5 months ago
Text
Sticking to the home row on mobile
M-x counsel-unicode-char RET digit three RET being obviously, comically verbose
The idea that M-x counsel-unicode-char RET digit three RET will avoid the number key row/layer (which it hits three times due to the HYPHEN-MINUSes) more than either just typing the number (1 hit) or using M-x insert-char RET digit three RET
Using counsel over insert-char in the first place, as if the names of the Hindu-Arabic numerals were something so forgettable you prioritize being able to search for 'em over portability or terseness
I love it. :)
In the image below, light blue is the number row, and light yellow is the number pad.
Tumblr media
We ask your questions so you don’t have to! Submit your questions to have them posted anonymously as polls.
2K notes · View notes
sketchygardenbah · 16 days ago
Note
could we have a level two , with all add - ons if possible ( you dont have the include the fun fact or fav school subject if you dont wanna :3 , those arent too important for us but would be intresting to have ) ,
of any minecraft youtuber ( no one associated with dsmp / qsmp though ) , with our only preference being that they have a masc - gender , arent human , and can stay calm / appear calm in stressful situations ,
uhh . . id say like . . intermediate detail && the urgency is like . . 3 - 3.5 ish ? , we just kinda . . need them to help with a certain issue that we cannot currently handle ,
— 💤🥩🐾 / sleepy carnivorous pup anon ,
↳-Letter 028-༉‧₊˚✧
°‧🌱 Thank you for stopping by the gardens , here is your New Plant ! We hope you enjoy h^s company ! ⋆.ೃ࿔*:・
Hello Hello , we hope we understood and were able to complete this well enough as we tried to do so relatively quickly. We hope blu helps you with whatever you're going through.
Your patience has been much appreciated , may the stars guide you onwards .
Tumblr media
《 Name[s]: Scar , August , Orion , Flynn , Cassian , Evander , Alder , Jellie
《 Nickname[s]: Oggie , Ori , Evan , Finn , Ry , Kitty
《 Age[s]: 32-40yrs // Pausedage // Catage
《 Role[s]: Copimeca-Forge , Posier , Emergency Fronter , External Protector , Nonhuman Alter
《 3rd Person Pronouns [e.g. she/her]: he/him , peace/peaces , build/builds , calm/calms , blu/blus , wheel/wheelchairs , grey/greys , silent/silence , hope/hopes , idle/idles , cat/cats , purr/purrs , laze/lazes , h^/h^m , box/boxs , paw/paws , soft/softs , cold/colds , empty/emptys , void/voids 
《 1st Person Pronouns [e.g. I/me/myself]: I/me/myself , zi/ze/zyself , aby/abyss/abyssself , re/rel/relaxself , bla/blare/blareself , gre/grey/greyself , com/pose/composeself , co/com/comfortself , cra/craf/craftself , bui/build/buildself , hoi/hope/hopeself , si/se/syself , su/sun/sunself , chi/chill/chillself , ge/gent/gentleself , voi/void/voidself , cla/claw/clawself , pu/purr/purrself , fren/frens/frenself , zo/zoo/zooself
《 Gender[s]: Demiboy , Boyflux , CloudCatGender , Goodbodiment , CalmGender , VoidBoy
《 Sexuality / Orientation: Aromantic , Asexual , DemiPlatonic , Omni [femme pref] , AlterousSpike
《 Source [if applicable]: Minecraft YouTuber [ GoodTimesWithScar ] // Nonhuman cat - based slightly off of his irl cat - Jellie
《 Signoff: 🌪️❌ , 🐾🎧 , 🎭🌀
《 Faceclaim: [you may choose wether or not he appears more according to Scar , Jellie , or a mix of both]
Tumblr media Tumblr media
[ 2 ]
《 Likes: The cold - specifically the cold winter sun , animals , fidgeting / stimming , calming others down , helping to work through problems , medical stuff , being outside , comforting others , “keeping a straight face” , being professional when blu needs to be , carrying out h^s jobs or tasks , playing minecraft - specifically building , destressing , watching or seeing stuff from idles source
《 Dislikes: people being angry - upset - or unreasonable , not being able to help , feeling / showing strong emotions , flashing lights and imagery , ableism , being referred to as human , being hungry / thirsty
《 Violence Level: 1.5
《 Typing Quirk: adds elispes where other punctuation would usually be and replaces ‘i’ with ‘^’ [ e.g. H^... how are you and your pets do^ng…? Yea ^ Have to go now… see you around…!   
《 Birthday: [cis] August 19th // TransBirthday December 22nd
《 Preferred Communication Form: Face to face conversation [due to his ability to socialize , mask and stay calm] and Audio calls [as purr is good at speaking to others and can enjoy a break from facially masking - audio calls can also be stressful for some and hope is good at dealing with them]
《 Favorite Subject in school: Maths and Debate -  due to the analytical side of both and the body language , skill , and resolve required for debate 
《 IDs: TrisDisabled , XisPermaCalm , PermaHealthy , TransTraumaSurvivor , XisPermaMasking , NullEmotions , PermaNumb , TransCatTail , TransPaws , TransBlueEyes , TransStripes , TrisScars , TransHearingAid , PermaApathy , NullOrgans , TransDarkBlood , PermaNeutral , TrisNegotiator , TransASPD , TransLowEmpathy + NullHighEmpathy , TrisSemi-Verbal , TransAVPD , TransMute , TransBirthday
《 MUD/S: Selective Oblivion Syndrome - SOS , Sympathetic Empathy Disorder - SED , Emotigraphia
《 Paras: ❄️ // 🦿 // 🩹 // 🫠❤️ 
《 Kin list: VoidKin , Feline Cladotherian , Pi[as in maths]Kin , WaterHearted , SnakeKin , SwordFernKin , Apathy[Emotion]Kin , ManateeKin , MantaKin
Tumblr media
.˚₊‧༉︶︶︶︶︶︶︶︶︶︶︶︶︶︶︶︶︶︶︶︶︶︶︶︶︶︶︶༉‧₊˚.
2 notes · View notes
tokinanpa · 1 year ago
Note
what do you like about emacs?
a lot of things, really! I will refer you to the documentation for Doom Emacs for a short answer to this question that I agree with, or you can keep reading for my much, much longer answer. :)
as a software that predates modern text editors and IDEs, emacs breaks the mold when it comes to the established design patterns of these tools. in some cases this can be a problem: emacs is notoriously slow (though somehow still faster than modern IDEs on my machine lol), and its default keybindings are horrendous. but it is also emacs's greatest strength: the sheer versatility and extensability of its design is unmatched by any other tool in existence.
the first thing you need to know about emacs is that.. it's not really a text editor. I mean, that may be the mission statement on the website, and that's certainly what it was when it started out, but as it's developed it's become more than that. emacs is a software platform for text-based applications.
the entirety of emacs is designed to function as one big interpreter for the language Emacs Lisp (elisp for short). when you press a key on your keyboard in emacs, say the Enter key, that keypress is sent to emacs's standard library code written in elisp. the code looks up that key in a keymap, which associates it to a particular elisp subroutine to run (specifically "newline-and-indent"), which accesses the file you're currently editing and makes the corresponding change.
every aspect of that process is configurable directly through the elisp language. you can rebind the key to a different action, of course, but you can also edit the "newline-and-indent" subroutine to do something else, or edit any other elisp function. you can switch between multiple keymaps (a keymap is just a lisp object) on some condition, such as opening a particular file. you can even tell emacs to display text that isn't linked to any file and alter the keymap when the user is interacting with that text to contain your own custom bindings. in effect, you can create any text-based interface you want.
here is a non-exhaustive list of all of the things that I have used emacs as:
IDE
Prose editor
File manager
Calculator
Productivity tool
Email client
Calendar
Web browser
Tetris
all of these tools use, to varying degrees, the techniques I mentioned above to directly modify how emacs functions through elisp. with a little knowledge of the language, you can modify these tools to your liking just as easily as you can modify emacs itself. emacs becomes a unified interface for a hundred different applications, all of which are fully configurable and self-documenting. (yeah I didn't even mention that emacs is self-documenting within its code until now).
.. so it's not even really that I "prefer" emacs, because that framing implies that there are alternatives that are equal in scope or utility. I use emacs because it is the only thing that does what emacs does.
Emacs outshines all other editing software in approximately the same way that the noonday sun does the stars. It is not just bigger and brighter; it simply makes everything else vanish.
- Neil Stepheson, In the Beginning was the Command Line (1998)
16 notes · View notes
piratesexmachine420 · 1 year ago
Note
Experience with rust thus far
Rust is great! I've been working with it off and on for around a year and change now, and I have no complaints.
It's a very... sane language. At no point have I looked at a language feature and thought "wow that's a hack", which has been my experience with almost every other imperative language to that point. (Java, C, C#, JavaScript, Python, etc.) There are a few features I think it's currently lacking, but most of them are present in the nightly branch. (I'm a big fan of let_chains and const_fn_floating_point_arithmetic, among others.)
Library support via Cargo is great, no complaints, and I love how easy doc comments are to write, it makes for an almost Elisp level of good documentation.
I've written a few non-trivial applications, like a breakout clone and a flappy bird-esque thing, and while I ditched good practices for the sake of implementation efficiency (both projects were more about learning libraries than the final product) Rust's nature makes it really easy to refactor from copy-paste spaghetti hell into clean, encapsulated, maintainable code.
I also love how anal-retentive the compiler is. Again, Rust is a very sane language. I do not want to be writing Raku, where there are a thousand "basically correct" ways to do the same thing. I want constraints, and I want them strict. I want to be able to express to the compiler not just what I want a piece of code to do, but what I don't want it to do as well. We're all human! We're gonna mess up! I want it to be easy to tell that I've messed up! (Looking at you, python, with your assignment equals declaration bullshit. Typoing a variable name should not be permitted.)
Overall it's just great. When it comes to writing applications I'd pick no other language. (Except maybe D. Too bad nobody supports D...)
5 notes · View notes
yiffos-official · 10 months ago
Note
vim (and subsequently neovim) does allow for much of these right out of the box!
Tumblr media
It's fairly simple to build a nice config with neovim particularly, lua is great. I really disliked elisp when i wrote my emacs config unfortunately, and it was a big turn off when i was using it.
I had issues with the speed of elisp, particularly, when i was using corfu for completion with eglot, or copilot.el, it would sometimes give me input lag of 100ms+.
if i could make my config less fucky, i would totally use emacs over nvim, even if it's just to revive puppymacs
Tumblr media
why not vim
Vim is fine if all you need is a decent text editor, but emacs brings so much more.
Endless customization
Org Mode is fantastic to keep notes (and also a more logical markup language than markdown)
You can open multiple files side by side in emacs
Emacs has a builtin terminal emulator (but I would recommend using the vterm package)
Why would you need a terminal emulator if you run emacs already in a terminal? Well, because emacs also runs as a GUI app, including support for displaying PDFs and images.
Editing remote files via ssh (truly via ssh, not a "use ssh to install and start a special server" kind of deal like vscode)
Magit is one of the best git clients there are
If you really want to, you could even use emacs as an @x11-official window manager
With the evil package, you can continue using all the vim motions you are used to.
Contrary to vim, you can exit it without restarting your system ;)
And much more
27 notes · View notes
ceausescue · 7 months ago
Text
ive changed my mind, other than a few obvious Ls elisp is actually genius. like if you turn on lexical scoping what's even to complain about?
3 notes · View notes
neotriobrainrot-reborn · 2 years ago
Text
Was practicing elispes and circles, and I ended up trying to draw Molly’s eyes a few times while practicing. I think I need to work on the shading when it comes to her eyes
Tumblr media Tumblr media Tumblr media
8 notes · View notes
liliallowed · 1 year ago
Text
this gives me killer vibes.
specially cuz he's constantly "crying" black tears.
"you're all on your own and you lost all your friends, you told yourself that it's not you(sans) it's them(chara)"
"you're one of a kind and no one understands but those crybaby tears keep coming back again."
"someone's turning the handle, to the faucet in your eyes, you pour it out where everyone can see."
"your 🎯 to big for your body. it's why it won't fit inside. you pour it out where everyone can see"
"tears fall to the ground we'll just let them drown=)"
3 notes · View notes