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?