This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ;; Package --- Summary: Functional, but simple evil emacs config. | |
| ;; Author: Aadvik <[email protected]> | |
| ;; License: Public Domain | |
| ;; URL: https://gist.github.com/Aadv1k/2bd92889f3a10a5ffb6298b8fb7d04bf | |
| (defvar *HOME* "C:/Users/Aadv1k") | |
| (setq default-directory *HOME*) | |
| (setq-default default-directory *HOME*) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| syntax on | |
| let mapleader=" " | |
| " https://stackoverflow.com/questions/69145357/vim-almost-hangs-with-100-line-typescript-file | |
| set regexpengine=0 | |
| filetype plugin indent on | |
| set colorcolumn=80 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (defun split-str (string &optional (separator " ")) | |
| (split-str-1 string separator)) | |
| (defun split-str-1 (string &optional (separator " ") (r nil)) | |
| (let ((n (position separator string | |
| :from-end t | |
| :test #'(lambda (x y) | |
| (find y x :test #'string=))))) | |
| (if n | |
| (split-str-1 (subseq string 0 n) separator (cons (subseq string (1+ n)) r)) |