2,181 karma · joined August 23, 2013
(setq ido-enable-flex-matching t) (setq ido-everywhere t) (setq ido-create-new-buffer 'always) (ido-mode 1)
(projectile-global-mode)
Maybe enable flycheck globally if you're used to syntax checking.
(global-flycheck-mode)
Also worth learning TRAMP if you're used to sshing into boxes and running vim. M-x info, C-s tramp.
Get rid of the waste of space toolbar:
(tool-bar-mode -1)
And install a nice theme, whatever floats your boat, I use a solarized theme [1]. The default theme is gross. (setq custom-theme-directory "~/.emacs.d/theme")
(setq custom-safe-themes t)
(when (display-graphic-p)
(load-theme 'my-solarized))
I use eshell, I think the plan9 smart shell features are nice: (require 'em-smart)
Basically includes additional editing features in eshell. It creates keybindings to edit previous commands and page through the output of commands.Make CTRL L clear eshell
(defun eshell/clear ()
"Clear the eshell buffer"
(interactive)
(let ((inhibit-read-only t))
(erase-buffer)
(eshell-send-input)))
(defun my-eshell-mode-hook ()
(local-set-key (kbd "C-c e") 'end-of-buffer)
(local-set-key (kbd "C-l") 'eshell/clear)
(eshell-smart-initialize))
(add-hook 'eshell-mode-hook 'my-eshell-mode-hook)
Line numbers, but only when you're editing code (GUI and text): (when (not (display-graphic-p))
(setq linum-format "%4d | "))
(defcustom linum-disabled-modes-list '(eshell-mode wl-summary-mode compilation-mode org-mode text-mode dired-mode doc-view-mode image-mode rcirc-mode)
"* List of modes disabled when global linum mode is on"
:type '(repeat (sexp :tag "Major mode"))
:tag " Major modes where linum is disabled: "
:group 'linum)
;; override linum-on because there is no good way to disable global-linum-mode
;; on a per-mode basis
(defun linum-on ()
(unless (or (minibufferp)
(member major-mode linum-disabled-modes-list)
(string-match "*" (buffer-name))
(> (buffer-size) 3000000))
(linum-mode 1)))
"Smooth scrolling"https://www.emacswiki.org/emacs/SmoothScrolling
[1] https://raw.githubusercontent.com/wcummings/dotemacs/master/...
FWIW irccloud is a lot like slack but for IRC, they offer "team" accounts and hosting. No search, though.
Charlie Baker is exceptionally popular, fiscal conservatism is clearly not frowned upon. Reading the WSJ does not make you a pariah, but even the Republicans here don't like the national Republicans.
I had like 0.000001 BTC in mtgox and it was worth it for the cute sticky unfoldy postcard thing I got from the Japanese court.
I have the opposite experience, if you're a fidget-y ADHD person, standing desks can be great. Sitting in a chair all day is torture.
Also invest in an anti-fatigue mat IMO.
Interesting that he left out marijuana concentrates, the most recent example (in terms of widespread availability).
Ironically, scaling ethereum seems a lot dicier than scaling BTC.
I hear this all the time, it has to be a side effect of getting all your news through facespace and other news aggregators. There's really only a handful of newspapers worth subscribing to (in the US), if you aren't reading at least one regularly enough that you'd pay for it if you had to, your money is pretty much no good. I'd expect to see more and more paywalls in the coming months/years, the economics are better, pandering to large volumes of low value readers is a race-to-the-bottom that won't support good journalism.
In the context of NIFs, long running could mean 100ms. The NIF API supports threads so you can always pass work to a thread pool and only block the scheduler thread for as long as it takes to acquire the lock on your queue. Or use dirty NIFs which I think are no longer experimental. There's also a new-ish function you can use to "yield" back to Erlang from a NIF but that kinda makes me nervous.
Static typing has value, but it's massively overstated IMO. Type-checking will only catch the most obvious bugs. Type-checking is mostly redundant with the tests I'm writing anyway, its pretty unlikely that a type error would ever make it to prod, so the benefits seem pretty questionable to me personally.