4 ms·
This doesn't seem right. I'm running it on a five year old computer and it feels way snappier than VSCode. I run on both Windows and OS X and don't have perform
by taude 8y ago
This doesn't seem right. I'm running it on a five year old computer and it feels way snappier than VSCode. I run on both Windows and OS X and don't have performance issues.
It could be some a rogue package or something with a wonky config?
Also, you should start it with emacsclient (I alias it to a shortcut). Run the emacs server/daemon in the background, and everytime you type your alias with a file name, it'll open almost instantly.
See more on the EmacsWiki page [1]
[1] https://www.emacswiki.org/emacs/EmacsClient https://www.emacswiki.org/emacs/EmacsClient
- komali2 8y agoI went through some stack overflow again and a lot of people are suggesting it could be linum-mode? I have it on everywhere cause I like being able to jump to a line number. But I have emacs 26 which is supposed to have fast, C written linum mode.
- TeMPOraL 8y agoThe modern, Emacs 26+ mode is: display-line-numbers-mode. This (put in config) will enable it for you globally: (global-display-line-numbers-mode 1) linum mode (and the faster contrib, nlinum mode) were used prior to Emacs 26, and sometimes had some performance issues in large files. Also, all of those are for displaying line numbers on the left margin. Jumping to a particular line in code works always. (And if you want to go totally oldschool, use column-number-mode and line-number-mode to see the column and line numbers of your current position displayed in the modeline. Or (shameless plug) install nyan-mode ;).)
- 0db532a0 8y agoYou don’t need linum-mode to jump to a line number. Just use M-g g, or M-g M-g.
- craigsmansion 8y agoTo elaborate a little: "M-x goto-line which is bound to M-g g, or M-g M-g." Naming the function "goto-line" in full can make it easier to remember for a reader, providing a fallback for when the key-chord isn't part of muscle-memory yet, and provides an easy way to look up the binding in emacs itself: C-h f <ctrl-h(elp)-f(unction)> "Describe function:" goto-line "[..] It is bound to M-g g, M-g M-g [..]"
- 0db532a0 8y ago`C-h k M-g g` (k for key) will also describe what the key-chord `M-g g` is bound to. Also, `C-h k` is bound to the function `describe-key`.
- komali2 8y agoBut how would I know the line number of what I wanna jump to without display line number on? I.e I'm on line 100, want to pop down to a function on 202 (a line I haven't visited yet).
- zeveb 8y agoIt'd probably be more common to jump, e.g. using ace-jump or plain old interactive search.
- 0db532a0 8y agoAlong with interactive search (C-s forwards, C-r backwards), you can jump to the definition of a symbol (including a function) with ‘M-.’. These would be the idiomatic ways of moving around. There are multiple ways of maintaining up-to-date symbols depending on your context, which you can look up in the documentation for ‘M-.’.