[a / b / c / d / e / f / g / gif / h / hr / k / m / o / p / r / s / t / u / v / vg / vm / vmg / vr / vrpg / vst / w / wg] [i / ic] [r9k / s4s / vip] [cm / hm / lgbt / y] [3 / aco / adv / an / bant / biz / cgl / ck / co / diy / fa / fit / gd / hc / his / int / jp / lit / mlp / mu / n / news / out / po / pol / pw / qst / sci / soc / sp / tg / toy / trv / tv / vp / vt / wsg / wsr / x / xs] [Settings] [Search] [Mobile] [Home]
Board
Settings Mobile Home
/g/ - Technology


Thread archived.
You cannot reply anymore.


[Advertise on 4chan]


File: transmascs.jpg (7 KB, 225x225)
7 KB
7 KB JPG
where do i start
>>
>>
>C-c
>C-c
>...
>reboot
>>
>>106437249
>2025
>Start
You’re a quarter of a century too late.
>>
>>106437249
write an init.el file
>>
>>106437249
apt remove emacs && apt install nvim
>>
>>106437249
sudo pacman -R emacs
sudo pacman -S vim
>>
>>106437275
C-c C-c is undefined

?
>>
>>106437293
>>106437295
>vim
im not a normie
>>
>>106437293
>>106437295
/thread
>>
>>106437249
Just use VSCode or VSCodium if you’re allergic to Microsoft.
>>
File: images-1.jpg (5 KB, 283x178)
5 KB
5 KB JPG
you should start just fucking coding nigga
>>
>>106437335
this
typing out some meaningful text or essay, or writing some useful program in nano (or even Notepad, ffs) a way better use of time than futzing about with text editor configurations, obscure keybindings, and add-on packages
>>
>>106437249
I recommend either using a pre-configured setup, watching a video of someone setting theirs up, or just rebind a few keys you find annoying/import and writing code or notes (org mode)

I started with Doom Emacs with the Vim keybindings turned off and it was pretty nice, but ended up going to vanilla emacs because I kept wanting to modify my init.el in convoluted ways that didn't play nice with Doom Emacs.

I also recommend turning Caps Lock into Hyper key and making it a Emacs super shortcut key (though you should make C-c key backups for terminal use)
>>
>>106437249
C-h t for the tutorial
Then emacs from scratch: https://www.youtube.com/playlist?list=PLEoMzSkcN8oNmd98m_6FoaJseUsa6QGm2
Then Prot essential emacs videos: https://www.youtube.com/playlist?list=PL8Bwba5vnQK3sQdwAbtdvuxUdtKSfOftA
Probably best to start with prot's "modern minibuffer packages".
Read the built-in emacs manual up to the advanced features section.
>>
>>106437249
you have to learn elisp or it's a waste of time or at least how to do keybindings. I learned all about emacs at one point but then i gave up and just went to vscode like everyone else
>>
>open emacs
>C-x C-c
for best emacs experience.
>>
>>106437331
>allergic to Microsoft
>use software based on their code
???
>>
>>106437249
I just use spacemacs (holy mode, if i wanted vim keybinds, i would just use vim) and learn to customize stuff as I go. It's rough starting from vanilla emacs and doing it all yourself.
>>
Close it and open nano instead, emacs is bloat
>>
>>106437272
kek
>>
>>106437272
lmao, I love Emacs but this is too true, even after rebinding caps lock to control.

I keep meaning to try out one of the modal packages... I should do that before I get carpal tunnel
>>
>>106438647
>I keep meaning to try out one of the modal packages
xah-fly-keys, the most efficient editing system in the universe?
>>
>>106437249
Learn vim, then switch to Doom Emacs.
>>
>>106437272
Honestly, the emacs keybindings are very easy to use once you learn them. Woah C-c C-x. Never seen that one. M-x M-s literally are a pinch. The movement keys don't even matter because arrow keys work out of the box along with Ctrl/Shift/Alt. Meanwhile Vim users are married to hjkl and make everything they touch use it. Gotta hunch over because your hands are closer together than the home row keys. Also gotta rebind Caps Lock to Escape instead of making it something useful like Hyper or Compose.
>>
>>106438390
Code is just code, but some people melt down over the telemetry to Microsoft servers in VSCode.
>>
>>106439529
I haven’t used MacOS for a while, but all of their GUI text fields use Emacs bindings. I’ve often wondered how long it’ll before some zoomer/jeet just deletes that feature.
>>
>>106439529
vim motions will always be infinitely superior to your bullshit.
seethe cope + dilate/
>>
>>106437293
>>106437295
>>106439737
>t. vimuser.org
>>
>>106439529
I'm just working through the tutorial for the first time and I don't hate it. I feel like over time though having to hold down Ctrl is going to become uncomfortable. Centering the screen with C-l is very nice, but I kinda wish there was a keybind that moved up and down lines like C-n and C-p while also simultaneously centering the screen like C-l. Is that something easily configurable?
>>
>>106437249
The only thing there that interests me is org mode. Otherwise vim keybindings are superior in every way
>>
>>106439505
Learn vim, it takes 5 minutes, then switch to emacs and create an .init file, spend the next week configuring it, install evil-mode and doomline. Don't install doom emacs because it's a bloated piece of shit.
>>
>>106437249
https://www.gnu.org/software/emacs/documentation.html
>>
>>106440400
>bloated
that's what spacemacs is.
there's nothing bloated about doom.
>>
>>106440746
They're both bloated. Learn to make your own config and install only the things you actually need.
>>
>>106441213
I'm writing Elisp for more than a decade. Doom does everything that I was doing and more, so there's no reason for me to have increased maintenance cost for the same thing, when I can focus on more important things. Doom is designed as a framework for someone who knows how to Elisp. Spacemacs isn't.
>>
>>106439529
>arrow keys work out of the box
kys and go back, vscodelet
>>
>>106440348
You can move forward/back 1 sentence or 1 paragraph at a time which can help move the screen less than C-v. Making custom keybindings is very easy to do
>>
>>106441308
You can write Elisp on top of what Spacemacs provides too. (I don't use Spacemacs anymore, but I did for a long time, and that's where I learned a lot of Elisp.)
>>
>>106441323
I should rephrase because of course arrow keys would work, but what I mean is you could use them and never have to learn the Unix movement keys, while with Vim that's much less the case.

Unless you're saying that you use C-b,f,p,n to move around. In that case lol and lmao.
>>
if you are used to vim make sure you are using the evil package, and evil-collection if you need it. also make sure you are running emacs as a daemon process to avoid long startup times. to open my terminal i use C-Enter, and emacs is not a terminal program so i bound `emacsclient -c` to C-' and it feels really snappy. it actually starts faster than vim.
>>
>>106437249
start with vim.. and then doom emacs.
>>
>>106437249
do we still have to pretend like you need to use emacs/vim to be good at your job ?
>>
>>106445281
nopony says that
>>
>>106445281
Yep.
>>
>>106437249
why even start
>>
>>106447827
any chance this guy also told us the number of observations in each bucket?
>>
>>106437249
>where do i start
With the Lisp general, >>106419114, since most of it is people tweaking emacs with elisp.
>>
>>106437249
c-h stuff.
you can watch system crafters. dont take them too seriously, but they're ok i guess.
awesome emacs list on github has, well, a list of popular 3rd party packages. it's useful even to people who use emacs distributions like spacemacs or doom emacs, cause most of them have readmes telling you what they do.
>>
>>106437249
i started by installing emacs prelude and reading 'mastering emacs'. a google search for 'learning gnu emacs, 3rd edition' gives me a pdf of the oreilly textbook in the first page.
>>
File: gedit users.jpg (141 KB, 735x848)
141 KB
141 KB JPG
>>106437249
Arghhh!!! I don't like Vim, because i use gedit!! Gedit provides me with all the tools and shortcuts I need, e.g. Ctrl+A selects all the text in the file! Ctrl+C copies all the text to the clipboard! Ctrl+V pastes the clipboard's text into the file!Ctrl+S autoamtically saves the file! I don't like the Vim way of doing it, which is ":wq" Also when I want to open Vim I have to open a terminal first which is an inconvenience for me, in my opinion. But on Ubuntu I just need to press the Windows key and search for a program. Then I open Gedit! It's like MAGIC!!! I don't need know much more than that. That's what I love about gedit, it's so simple and easy! I can also easily change the color schemes, but on the terminal it's kind of harder to do it. But everyone has different opinions so it's ok if u like Vim!
>>
>>106448821
>searching for gedit every single time
why
>>
>>106449562
Linux users:
>noo i don't want systemD, i want an init system that only does 1 thing. it's the unix way!!!!!!1111
>emacs? of course i use emacs.
>>
>>106449581
I'm asking you why you don't bother to add gedit to your favorites, not why do you use gedit. Is that really so hard to understand?
>>
File: 1f9-605941577.png (207 KB, 680x644)
207 KB
207 KB PNG
>>106437249

not OP but real talk , as a zoomie why learn this over simply continuing VSCode + VIM keybindings? Bloat? Is that the only reason you guys do this?

Tmux and window managers are also a thing if you need a bajillion panels open

I understand that Emacs is like a pseudo operating system within itself and you can just live inside there if you wanted - but what actually is the fucking utility of this shit on a practical level that would make it god tier to learn?

Like someone sell me on it.
>>
>>106449933
it's not a pseudo os tho, it's a browser of files which is also your repl. so you can tweak it very extensively. that's it.
dont wanna use it, then dont. let $whatever_text_editor shill their software, we're fine where we are.
>>
>>106449581
>systemD
?
>>
>>106437249
Reminder that (((emacs))) is written by (((Richard Stallman))), co-maintained by (((Eli Zareskii))) and written in (((lisp)))
>>
File: sw.alpha50.png (40 KB, 1350x1350)
40 KB
40 KB PNG
>>106454291
>lisp
I despise jews, but lisp is why I keep using Emacs. The way it can be introspected and extended at runtime is nice, and people who don't use Emacs at a high level don't know what they're missing. A corollary to this might be that one's appreciation of Emacs is proportional to one's understanding of Elisp. ...so a lot of people don't have an informed opinion.

I'm not saying it's without flaws. There are a ton of legitimate criticisms that can be made of Emacs, but there's also something that's tremendously right in what they did.
>>
File: clisp.jpg (52 KB, 655x366)
52 KB
52 KB JPG
>>106454291
>>
File: zun-vscode-is-shit.png (338 KB, 471x366)
338 KB
338 KB PNG
>>106437331
>>106438312
>vscode
more like vshitcode
>>
>>106454291
Reminder that your PC is based on the (((Von Neumann))) architecture. Also, most programming languages are (((Von Neumann))) languages.
>>
>>106447827
>>106447857
It likely is caused by the editor itself. The more brainlet you are the less likely you are to use Emacs.
>>
>>106454435
Yes Ivan I love Russia and Saudi Arabia and Donald Trump too.
>>
>>106454435
Kek based ZUN
>>
>>106437249
https://www.youtube.com/watch?v=urcL86UpqZc
>>
>>106445033
>evil-collection
this
>>
>>106458227
For any vim users interested in trying Emacs, this is what a bare minimum evil + evil-collection setup looks like. Add this to your init.el.
(require 'package)
(add-to-list 'package-archives '("nongnu" . "https://elpa.nongnu.org/nongnu/"))
(add-to-list 'package-archives '("melpa" . "https://melpa.org/packages/") t)
(unless package-archive-contents (package-refresh-contents t))

(use-package evil
:ensure t
:init
(setq evil-want-integration t) ;; This is optional since it's already set to t by default.
(setq evil-want-keybinding nil)
:config
(evil-mode 1))

(use-package evil-collection
:after evil
:ensure t
:config
(evil-collection-init))


If you want to install more packages, you can add another use-package block. The `:ensure t` is what tells Emacs to download and install it for you automatically. Packages can be found at:
https://melpa.org/
>>
>>106437249
With the tutorial?
I'll admit, I'm more of a vim guy, but the emacs tutorial is well structred.
>>
>>106458609
>download and install automatically
How do I go about that on a machine with no uplink?
Is there a way to just download shit toca disk and install it manually?
>>
>>106454419
>>106454391
SBCL is a thing, ya know...
>>
>>106458639
>Is there a way to just download shit toca disk and install it manually?
Of course. That's the way people did it before Emacs had a package manager. There are a lot of ways to do it, but the approach I would take is to use the --init-directory option to isolate all the config into one directory. When you're done setting it up, make a tarball out of that directory. You can then copy that tarball to you offline computer and untar it and use it as your config.

On the computer with internet access:
mkdir ~/.config/meinconf

# Put a use-package block for everything you want to download in this init.el.
vim ~/meinconf/init.el

emacs --init-directory=~/.config/meinconf --daemon
#
# ...watch it download and install packages...
#

# Create a tarball of your config
tar czvf ~/meinconf.tgz ~/.config/meinconf

# For fun, connect to emacs.
emacsclient -c
# To kill the emacs process, M-x kill-emacs


Copy the tarball to the computer that's offline:
# Assume ~/meinconf.tgz exists.
mkdir -p ~/.config
cd ~/.config
tar zxvf ~/meinconf.tgz

# Start emacs with your new config.
emacs --init-directory=~/.config/meinconf
# If you end up liking this config, I'd make a shell alias,
# shell script or shell function so that you don't have to
# type --init-directory all the time.


You need Emacs 30+ for the --init-directory option, but I think it's worth it. The latest release of Emacs is 30.2.
>>
When you get used to using `emacs --daemon`, emacs can fulfill a lot of the same roles that people typically use tmux or screen for, because daemonized emacs can survive a logoff.
>>
>>106437272
if you have long fingers Emacs is for you
if you have short ones vim is for you
I have long ones and I hate using my ring finger on "K"
>>
>>106458803
Well that's pretty straightforward.
I'll give it a look.
>>
>>106458803
Small correction. I messed up the path here.
vim  ~/.config/meinconf/init.el 
>>
>>106440386
>the only thing that interest me is.... is the most powerful thing in the world
>>
>>106440386
I started the same way. Org-mode is very versatile. Its main keybindings are also surprisingly ergonomic. I've never been a big fan of classic Emacs keybindings, but org-mode's bindings are quite nice.
>>
>>106437249
Typing, I guess.
>>
>>106437249
Don't do it bro. You'll have smelly boomers and groomers hanging over your shoulder 24/7.
>>
>>106437249
Why would I use this over notepad?
>>
>>106461263
Anyone who wants to do any kind of Lisp development should give Emacs a sincere try. It has really good support for integrating REPLs into the editing experience, and you can get things like paredit which lets you structurally edit your lisp.
http://danmidwood.com/content/2014/11/21/animated-paredit.html
>>
>>106437249
You start by learning vim. Then you install evil package in emacs and never use it's godawful default bindings, at least not for text editing.
>>
>>106439610
Yep
>These standard bindings include a large number of Emacs-compatible control key bindings, all the various arrow key bindings, bindings for making field editors and some keyboard UI work, and backstop bindings for many function keys.
https://developer.apple.com/library/archive/documentation/Cocoa/Conceptual/EventOverview/TextDefaultsBindings/TextDefaultsBindings.html
>>
>>106438708
Use vanilla keys instead of retarded modifications written by a balding sex pest.
>>
>>106439505
Just learn vanilla Emacs. Anything else -- Doom, Spacemacs, Aquamacs -- is pure bloat.
>>
File: 1720968187241826.jpg (90 KB, 1080x1069)
90 KB
90 KB JPG
>>106461370
Honestly I tried, but I couldn't get it to actually behave like a decent Lisp IDE without installing a fuckhuge glob of third party extensions. I figured out how to enable auto-closing parenthesis, but something as simple as pressing a button to get a repl that loaded the current file and gave me a symbol table required extensive scripting.
>>
>>106461370
As a clojure man, i find calva to be so so so much easier, but I'm trying to get comfortable with emacs.
>>
>>106463562
I don't know which lisp you were trying, but this is how I like to set things up for Common Lisp.
https://github.com/joaotavora/sly/discussions/683
(use-package sly
:ensure t
:config
(let ((patterns '(("\\*sly-mrepl"
(display-buffer-in-side-window)
(side . bottom)
(slot . 0)
(window-height . 22))
("\\*sly-db"
(display-buffer-in-side-window)
(side . bottom)
(slot . 1))
("\\*sly-inspector"
(display-buffer-in-side-window)
(side . right)
(slot . 1)
(window-width . 80))
("\\*sly-description"
(display-buffer-in-side-window)
(side . right)
(slot . 0)
(window-width . 80)))))
(cl-loop for p in patterns
do (add-to-list 'display-buffer-alist p)))
(setopt inferior-lisp-program "/usr/bin/sbcl")
(setopt org-babel-lisp-eval-fn #'sly-eval))
>>
>>106465633
M-x sly -- start a Common Lisp REPL
C-c C-k -- compile buffer
C-c C-c -- compile current defun

You can click on values in the REPL to inspect them.



[Advertise on 4chan]

Delete Post: [File Only] Style:
[Disable Mobile View / Use Desktop Site]

[Enable Mobile View / Use Mobile Site]

All trademarks and copyrights on this page are owned by their respective parties. Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.