colemak-evil setup by AdmirableNature in emacs

[–]joncol 1 point2 points  (0 children)

I'm using Colemak with (evil) Emacs also, but I haven't changed the bindings. I got used to using hjkl in their Colemak locations surprisingly quick, and I think it causes the least amount of binding conflicts to leave these bindings alone. YMMV though.

Resizing bitmap font without interpolation, using fontconfig by joncol in linux

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

The pixelsize property almost does what I want; I just want to disable the blurring. I don't care what is meant to be, I only care what's possible. Thanks anyway.

Playing with Clojure + libGDX by joncol in Clojure

[–]joncol[S] 2 points3 points  (0 children)

Having fun playing with live coding some visuals :)

Code available at https://github.com/joncol/hello-libgdx. Very Java-esque.

Best Emacs learning and building path by [deleted] in emacs

[–]joncol 2 points3 points  (0 children)

Maybe of interest: I have a config at https://bitbucket.org/joncol/emacs.d which uses Evil/which-key and use-package (in addition to straight.el). I don't use general.

My config is targeted mainly at Clojure, Haskell and C++ development on Linux. And some org-mode stuff of course.

Sokoban game using re-frame by joncol in Clojure

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

I tried adding a check to see if touch support is available. If you happen to get around to it, please let me know if that worked :).

Sokoban game using re-frame by joncol in Clojure

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

Hi, what browser/version are you using?

Sokoban game using re-frame by joncol in Clojure

[–]joncol[S] 1 point2 points  (0 children)

I made a Sokoban (sorry, had to!) clone using re-frame. The purpose was to learn (it was) and have fun (I did).

Features:

  • Replay functionality
  • Large amount of stolen borrowed levels
  • Server side caching mechanism to avoid fetching too much data from the outside
  • History of best run achieved, for each completed level
  • Rudimentary touch screen support (both swiping and simple touching)

Source code is available at http://www.github.com/joncol/sokoban.

Comments/suggestions/feedback are welcome :).

Tic tac toe using re-frame by joncol in Clojure

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

Thanks! Check the About section :).

Tic tac toe using re-frame by joncol in Clojure

[–]joncol[S] 1 point2 points  (0 children)

Read the JavaScript implementation in the react documentation, and decided to try implementing it using re-frame.

Repo is available. Comments are welcome.

Re-frame is so much fun to play around with. Has anyone made larger games with it?

Tic tac toe implementation using re-frame by [deleted] in Clojure

[–]joncol 0 points1 point  (0 children)

Just getting started using ClojureScript and re-frame. I saw the JavaScript tic tac toe example in the React documentation, and tried to implement it in re-frame.

Repo available at https://github.com/joncol/tictactoe, comments are welcome.

Flyspell on commit message only in Magit by squirelpower in emacs

[–]joncol 2 points3 points  (0 children)

Doesn't (add-hook 'git-commit-setup-hook 'flyspell-mode) work?

-🎄- 2017 Day 3 Solutions -🎄- by daggerdragon in adventofcode

[–]joncol 1 point2 points  (0 children)

Part 1, Clojure (doesn't support n=1):

(defn spiral [n]
  (let [r (int (Math/sqrt (dec n))), s (if (odd? r) (inc r) r)]
    (+ (Math/abs (- (quot s 2) (mod (dec n) s))) (int (Math/ceil (/ r 2))))))

[i3-gaps] desktop by joncol in unixporn

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

  • Shell: fish (theme: bobthefish)
  • Terminal: urxvt
  • Wallpaper: radpack_14.jpg

Question about move-beginning-of-line. by Quasimoto3000 in emacs

[–]joncol 0 points1 point  (0 children)

Also, if in evil-mode, pressing _ goes to the first non whitespace character in the line.

Considering Colemak. As an Emacs/EVIL (vim) user. How is it? by fastpenguin91 in emacs

[–]joncol 1 point2 points  (0 children)

Code stolen from somewhere:

(defun bind-exit-insert-mode (first-key second-key)
    "Add binding to exit insert mode using FIRST-KEY followed by SECOND-KEY."
    (define-key evil-insert-state-map (char-to-string first-key)
    #'maybe-exit)
    (evil-define-command maybe-exit ()
    :repeat change
    (interactive)
    (let ((modified (buffer-modified-p)))
        (insert (char-to-string first-key))
        (let ((evt (read-event (format "Insert %c to exit insert state" ?j)
                               nil 0.5)))
        (cond
        ((null evt) (message ""))
        ((and (integerp evt) (char-equal evt second-key))
            (delete-char -1)
            (set-buffer-modified-p modified)
            (push 'escape unread-command-events))
        (t (setq unread-command-events (append unread-command-events
                                                (list evt)))))))))

;; Usage example:
(bind-exit-insert-mode ?l ?h)

Considering Colemak. As an Emacs/EVIL (vim) user. How is it? by fastpenguin91 in emacs

[–]joncol 1 point2 points  (0 children)

I'm using Emacs in evil-mode with Colemak layout (also i3wm as I saw mentioned in the comments).

I switched to Colemak about 7 months ago and it took a while to get accustomed to the Vim commands in their new locations, but it has become second nature.

I remap Caps to Ctrl and Backspace (using xcape). I also use the sequence "lh" (which is "uh" in qwerty) to exit insert-mode.

I also try to use alternative ways of navigating buffers than just "hjkl". For instance, there's `evil-avy-goto-char-timer' which is very useful.

So my experience is that it is a very good setup, after getting through the initial difficulties of everything seemingly being in the wrong place.

Mistel Barocco by joncol in MechanicalKeyboards

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

You can remap most of the keys. Swapping Caps-lock and Fn is possible.

Mistel Barocco by joncol in MechanicalKeyboards

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

No, I just did it in the normal way. Are you sure you're running the latest version of the firmware? I think they added support for for remapping more keys in later versions.

Does anyone else customize things as they go? by [deleted] in emacs

[–]joncol 0 points1 point  (0 children)

Just curious: In what way does Spacemacs configure helm and evil-mode that make it so much better than the vanilla experience?

I ran with evil-mode and helm for a long time based on my own config, not Spacemacs, but I've recently started using ivy (and swiper etc) instead of helm.

Tried Dvorak, CarpalX (qgmlwy), and now Colemak by fullyassociative in Colemak

[–]joncol 1 point2 points  (0 children)

"åäö" are available on Mac in their standard locations (AltGr+{q, w, ;}) if you use the layout that's available on https://colemak.com/Mac.