       gnus-permanently-visible-groups ".*\\(Inbox\\|INBOX\\).*"
       gnus-summary-line-format "%U%R%z %(%&user-date;  %-22,22f  %B%s%)\n"
       gnus-user-date-format-alist '((t . "%Y-%m-%d %H:%M"))
-      gnus-thread-sort-functions
-      '((not gnus-thread-sort-by-date)
-        (not gnus-thread-sort-by-number))
+      gnus-thread-sort-functions '(gnus-thread-sort-by-most-recent-date)  ;; gnus-thread-sort-by-date))
       gnus-message-archive-group "nnimap+fastmail:INBOX.Sent"
       gnus-gcc-mark-as-read t
       gnus-use-cache t

  (set-frame-font "mononoki-11"))

(when (and window-system (equal system-type 'gnu/linux))
  (set-frame-font "Inconsolata 13"))
  ;; (set-frame-font "mononoki-12")
  ;; (set-frame-font "DejaVu Sans Mono-11.5")
  ;; (setq x-alt-keysym 'meta)

(require 'smartparens-config)

(global-set-key (kbd "M-g") 'counsel-projectile-ag)

(global-set-key (kbd "C-h f") 'helpful-function)
(global-set-key (kbd "C-h v") 'helpful-variable)
(global-set-key (kbd "C-h F") 'helpful-command)
(global-set-key (kbd "C-h M") 'helpful-macro)

