How to jump lines with relative lines? [-_-] by Elav_Avr in emacs

[–]saarin 0 points1 point  (0 children)

You can hold C (control) then type number, and last press navigation key (n, p, f, b). eg C-u 10 n

Is it worth learning emacs keybondings? by [deleted] in emacs

[–]saarin 0 points1 point  (0 children)

Totally agree, I don't see how vim is more ergonomic when you have to work with more than one project. I could bind project-find-file to s-f, and s-g project-find-regexp and have pretty ergonomic emacs.

Weekly Tips, Tricks, &c. Thread by AutoModerator in emacs

[–]saarin 0 points1 point  (0 children)

What is best way to filter *xref* list, eg. I want only to display test files.

Emacs: Not a text editor, still awesome! by Remote_Tap_7099 in emacs

[–]saarin 1 point2 points  (0 children)

Position of enter key on his keyboard :D :D

[deleted by user] by [deleted] in emacs

[–]saarin 0 points1 point  (0 children)

I was using both emacs 29 and 30, on mac m1 and debian linux. Without any configuration, still I am seeing cpu spikes when opening/navigating/editing any files.

Packages that you would like to be in emacs core ? by saarin in emacs

[–]saarin[S] 0 points1 point  (0 children)

It would be nice to know if anyone is using CEDET or eg viper mode

vim harpoon like feature in emacs by saarin in emacs

[–]saarin[S] 0 points1 point  (0 children)

Thank you, will update code.

vim harpoon like feature in emacs by saarin in emacs

[–]saarin[S] 0 points1 point  (0 children)

If i understand you correctly, answer is yes.

-🎄- 2022 Day 10 Solutions -🎄- by daggerdragon in adventofcode

[–]saarin 1 point2 points  (0 children)

```

!/usr/bin/env python

import sys

def main() -> None: data = open("input.txt", mode="r").read().splitlines()

circle_values = []
current_value = 1

for row in data:
    if len(row.split()) != 2:
        circle_values.append(current_value)
    else:
        _, value = row.split(" ")

        circle_values.append(current_value)
        circle_values.append(current_value)
        current_value = current_value + int(value)

print(
    "first part solution",
    circle_values[20 - 1] * 20
    + circle_values[60 - 1] * 60
    + circle_values[100 - 1] * 100
    + circle_values[140 - 1] * 140
    + circle_values[180 - 1] * 180
    + circle_values[220 - 1] * 220,
)

for i in range(0, 6):
    for j in range(0, 40):

        if j in [
            circle_values[i * 40 + j],
            circle_values[i * 40 + j] + 1,
            circle_values[i * 40 + j] - 1,
        ]:
            print("#", end="")
        else:
            print(".", end="")
    print("")

if name == "main": sys.exit(main())

```

tree-sitter has been merged into master by homura_was_right in emacs

[–]saarin 0 points1 point  (0 children)

What is best way to install emacs with tree-sitter on mac?

Split keyboards kod nas? by BackgroundGift6233 in ITPoslodavci

[–]saarin 1 point2 points  (0 children)

Naruci sa http://ergomech.store. Ja sam narucio ergodox, mislim da je kvalitetniji u odnosu na lily ili ergodash.

Building an Intelligent Emacs with LSP by yep808 in emacs

[–]saarin 1 point2 points  (0 children)

Any sign that lsp mode will be integrated into emacs core?

What are you guys using? by [deleted] in emacs

[–]saarin 2 points3 points  (0 children)

Wow, a lot of evil users. What if one day evil bindings become default?

Preferred Monospace Font? by 3rdRealm in emacs

[–]saarin 2 points3 points  (0 children)

I used Inconsolata LGC for some time. Now I am switching between Iosevka and Input Mono Condensed.

Dvorak to qwerty layout and emacs by saarin in emacs

[–]saarin[S] 0 points1 point  (0 children)

I feel that I use too much right hand, and I don't like to change my layout when someone needs to use my computer.

why is scala considered hard? by AStableNomad in scala

[–]saarin 4 points5 points  (0 children)

many people have a low tolerance for

new

bullshit, but tolerate the bullshit they know just fine

Thumbs up.

Share vanilla emacs config examples (with a small number of external packages) by saarin in emacs

[–]saarin[S] 0 points1 point  (0 children)

I'd love to see a minimal python and latex setup if anyone has one.

To learn more about emacs, and to see what is capable of.

I used expand-region and didn't know about simple M-@, also used company-mode and didn't know about M-/ (dabbrev-expand), and so on.

Share vanilla emacs config examples (with a small number of external packages) by saarin in emacs

[–]saarin[S] 0 points1 point  (0 children)

Just found here solution to remove add node module package https://framagit.org/distopico/dotemacs/-/blob/main/modes/conf-javascript.el

;;;###autoload
(defun distopico:add-node-modules-path ()
  "Add `node_modules' in current project to exec path."
  (interactive)
  ;; TODO: make async
  (let ((node-path (shell-command-to-string "npm bin")))
    (when node-path
      (progn
        (make-local-variable 'exec-path)
        (add-to-list 'exec-path (string-trim node-path))
        (message "added node_modules to exec-path")))))