Live data from Hacker News

Absolute Beginner's Guide to Emacs (2012)

jesshamrick.com

91–100 of 262 posts

Re: Absolute Beginner's Guide to Emacs (2012)

#91
post #5
post #2

I started using Emacs a few months ago and I love it. I think I'd struggle day to day now without Org Mode. I love how easily I can switch from something in Org Mode to something like a Clojure REPL, then to a Powershell window and to a text editor. If I can just get it doing C# editing / compiling I'd be very happy.

I started working in a .NET shop a few months ago and have finally sorta-kinda gotten my Emacs configured the way I want to in terms of C#. If there are any specifics you need help with, shoot me an email or something!

Have you ever managed to get intellisense working for c#? I try every few months with junk like Roslyn but it never seems to work. It just silently fails to do anything at all.

Re: Absolute Beginner's Guide to Emacs (2012)

#92

Earlier quoted context omitted.

If there's one thing I will always be grateful to emacs for; it will be changing Caps Lock -> Ctrl Life changing.

I completely agree, but I have the os do that. Except on my iPad where I am grateful for blink to have that capability. On windows I had a special mode for caps lock via autohotkeys. Press and release meant esc. Press followed by another key and release was ctrl-key. I really liked that, but I couldn’t do it on Mac or iPad so I just settled on ctrl. My old //e has control there naturally.

sure, i changed it at OS level too. maybe i should have wrote "introduce me to Caps Lock -> Ctrl"

Re: Absolute Beginner's Guide to Emacs (2012)

#93
post #67
post #65

Earlier quoted context omitted.

You can consider these points: - Tabs are not present in Emacs, but C-x C-b will list all open buffers + Fuzzy file search : you can take a look at the popular Ido-mode + eshell is pretty powerful, if you think about it, you have all the emacs search functionality etc. available in a shell inside the editor itself. I am not trying to popularise emacs, but "inflexible" is not something that you associate with emacs. I…

> - Tabs are not present in Emacs, but C-x C-b will list all open buffers I want a passive, not an active interface. I want to be able to visually scan the tabs. I want to be able to click them when I'm not in the mood for keyboarding. I want the tabs and the tab bar to not be ugly as sin :) Etc, etc. Heck, if Vim has them built-in (and Vim also has the same concept of buffers as Emacs), surely Emacs could (should?)…

You do not need to see what "tabs" are open at all times. You only need it when you want to switch. It's also incredibly limiting. At this moment I have 127 buffers open in emacs. How would you deal with that?

Re: Absolute Beginner's Guide to Emacs (2012)

#94
post #86

Earlier quoted context omitted.

How much time have you invested?

I used emacs for years to write code and latex documents only knowing the commands to open and close files, copy/paste, and quit. I started with emacs in lieu of vim because I think modal editing is an insane and clunky solution to a problem that no longer exists. The documentation isn't really very good due to the arcane terminology that often contradicts modern de facto standards in naming things (frames, buffers,…

my emacs config is init.el having

(require 'package)

(setq package-enable-at-startup nil)

(add-to-list 'package-archives '("melpa" . "https://melpa.org/packages/") t)

(package-initialize)

;; Bootstrap `use-package'

(unless (package-installed-p 'use-package)

(package-refresh-contents)

(package-install 'use-package))

(org-babel-load-file (expand-file-name "~/.emacs.d/myinit.org"))

then you can put your configs in an org file. using `use-package` means I can just copy/paste the file to new emacs and all my packages are auto installed etc..

#+BEGIN_SRC emacs-lisp

(use-package command-log-mode

   :ensure t)  

 #+END_SRC  


also, i highly recommend package `which-key` - it displays what commands are available along with their keypress.

Re: Absolute Beginner's Guide to Emacs (2012)

#95

I have yet to encounter anything that can match the sheer flexibility of Emacs. For example I am currently using Org mode to write some documentation complete with hyper-links, tables, foot notes and the option to export the results as LaTeX, HTML, Open-Office, and so on with just a few keypresses. It's not just an editor, or an IDE, or even a windowing system - it is a cross-platform computing environment that can b…

Org mode is really awesome. A chemist basically does his work with org (http://kitchingroup.cheme.cmu.edu) and recently another guy showing his colleague’s poster done with org and Beamer ( http://irreal.org/blog/?p=7651). I find org and mu4e really make mundane stuff easily done. On a mac and iOS system to get email, calendar, to do list, and notes done, it is usually 4 different programs, with emacs it is just org and mu4e and beorg on mobile.

Re: Absolute Beginner's Guide to Emacs (2012)

#96
post #36

About four months ago I moved from VS Code to Spacemacs and it has been an extremely rewarding experience. Anyone who is afraid of Emacs or Vim should give it a try. I've heard good things about Doom and Prelude as well.

Could you give us a few pointer on how you prefer working with Spacemacs rather than with VS Code? I've tried Vim a few times but got turned off by the slow process of learning the multiple keyboard shortcuts to do a simple task.

I'm relatively new to Vim (~4 months).

I used the "learning by doing" approach by forcing myself to use Vim to write C and Python at work.

I had two main reasons for learning Vim: (1) Vim is everywhere, so it must be worth it to learn the basics at least; and (2) modal editing felt easier on my wrists than the standard mouse + shortcuts approach I ended up using in other IDEs.

Here is my advice:

1. Start with only a theme in your .vimrc, so no plugins or non-standard key bindings.

2. Use Vimtutor (or any other tutorial) to learn the basics: normal vs. insert mode, movement, manipulation, yank/paste (+ clipboard), splits, buffers, and searching.

3. As you write code, you will find yourself wanting to know how to do X. This is where Google and a simple "cheatsheet" file come in. Once you find out how to do X via Google, add an entry to your cheatsheet file (example in HTML form: [1]).

4. In many cases, you will find that a plugin will solve one of your issues. Install that plugin and add it to your .vimrc. I recommend vim-plug[2] for managing and installing plugins.

5. There are many useful plugins out there. Two I would strongly recommend: CtrlP[3] and NERDTree[4].

Once you have a good grasp of Vim, I would recommend exploring Emacs + Evil-mode if you want a more complete IDE experience.

[1]: https://assil.me/2018/11/12/vim-cheatsheet.html

[2]: https://github.com/junegunn/vim-plug

[3]: https://github.com/kien/ctrlp.vim

[4]: https://github.com/scrooloose/nerdtree

Re: Absolute Beginner's Guide to Emacs (2012)

#97
post #70

Earlier quoted context omitted.

Emacs is an OS that lacks a decent text editor (the joke is as old as Emacs).

I realize this is a joke, but there seem to be a lot of people who are really attached to the interpretation of Emacs as a little Lisp Machine.

Emacs should just embrace it and make a distro.

Re: Absolute Beginner's Guide to Emacs (2012)

#98

Earlier quoted context omitted.

Use the develop branch. It hasn't been merged into master because of long running reworking, but I don't follow Doom closely enough to know all the details.

Master is almost 4000 commits behind but zero commits ahead after almost a year so simply shouldn't exist. Multiple eternal branches are pointless and need to stop.

Go tell the core developers...

Re: Absolute Beginner's Guide to Emacs (2012)

#99

Earlier quoted context omitted.

Emacs is an OS that lacks a decent text editor (the joke is as old as Emacs).

Not funny. Evil mode was released in 2013.

I tried Evil mode a few months ago and went back to Vim very quickly. It's one of the best Vim plugins out there, but it still misses a few features and it also behaves differently in a couple of situations.

It never really feels like Vim, more like a minefield of unknown shortcuts with a layer of Vim bindings on top. But I get why some people like it, if you can't stand modal editing then Emacs is a great choice.

Re: Absolute Beginner's Guide to Emacs (2012)

#100
Emacs is habit forming.

I started using emacs as an undergrad in the late 80s, as it was the only way I knew of at the time to have multiple windows open on a standard DEC VT-220 terminal. ( I did not know about screen; it was quite new at the time ). I switched to using my UNIX account daily from VMS mainly to get access to this feature that I saw my friends and upperclassmen using.

After I got access to an X11 based workstation in the early 90s, I was so used to emacs that I never looked around for alternatives. I can edit simple files in vi, but I don't use it for anything complex.

The closest I ever got to using another IDE was in the early 2000s when I was tasked with writing drivers on MacOSX. I looked at using Xcode and quickly returned to emacs (mostly so that I could continue to use my X11 focus-follows-mouse environment, and not be forced to sit at a mac).

To this day, I swap my caps-lock and control keys, because that original DEC keyboard had ctrl as the left-most key on the home row. As did the sparcstation keyboards..

Post reply on HN