Commit Graph

3408 Commits

Author SHA1 Message Date
Henrik Lissner
c0791e0790
Disable main workspace in noninteractive emacs
It is unnecessary in a noninteractive session.
2017-06-14 21:15:20 +02:00
Henrik Lissner
96ca709b23
Disable persp auto-save in noninteractive session 2017-06-14 21:15:19 +02:00
Henrik Lissner
fbc93783fe
Fix neotree-show when open in other frame/session
Annoying when neotree is open in one emacsclient frame (possibly buried)
and you're trying to open a neotree pane in another.
2017-06-14 21:15:19 +02:00
Henrik Lissner
816df321a5
General refactor & cleanup 2017-06-14 21:15:19 +02:00
Henrik Lissner
633e693cab
{Fix,Refactor} doom/describe-{setting,module} 2017-06-14 21:15:19 +02:00
Henrik Lissner
9c93c453e8
Reorganize unit-tests and test workflow
+ Moved unit tests out of tests/ and into their respective modules.
+ Rewrite makefile and added these tasks:
  + <MODULE>/<SUBMODULE> -- byte-compile a specific module
  + test:<MODULE>/<SUBMODULE> -- runs tests for a specific module
  + testi -- run tests in an interactive session of Emacs (WIP)
  + run -- opens an Emacs session with this config; useful when it is in
    a non-standard location.
2017-06-14 21:15:19 +02:00
Henrik Lissner
cacd188286
Replace doom-package-*-p with doom-package-prop 2017-06-14 21:15:19 +02:00
Henrik Lissner
732dee608a
Stability/error-handling refactor (part 1)
This refactor is about improving how Emacs deals with errors.

A large net is now cast at startup to catch possible errors, produce
more helpful error messages, and localize the damage. Significantly
reducing the risk of later modules not loading (and leaving you
stranded in a half-broken Emacs session).

The DOOM core files are an exception. If something messes up in there,
it *should* choke.

+ use-package will now report missing packages or slow-loading/broken
  def-package! configurations.
+ Persp-mode no longer (inadvertantly) hides buffers that pop up at
  startup, like the *Warnings*, *Backtrace* or debugger buffers.
+ `make autoloads` (or doom/reload-autoloads) now produces a slightly
  more informative error message if an error occurs while building the
  autoloads file.
+ Error handling for package management is *slightly* better now; error
  messages now include the type of error; this needs work.
2017-06-14 21:15:19 +02:00
Henrik Lissner
55f0760c4e
Add nlinum-hl to core/packages.el 2017-06-14 12:14:34 +02:00
Henrik Lissner
6dff6e124b
Bring back nlinum-hl
I moved the nlinum--region fix to the nlinum-hl package; which also
contains fixes for other problematic major-modes.
2017-06-14 02:51:24 +02:00
Henrik Lissner
63b091f7aa
Fix *Warnings* buffer hiding on startup
...by holding them back until persp-mode is initialized.
2017-06-13 18:30:05 +02:00
Henrik Lissner
c1890307a6
Fix precedence of popup rules
More general rules should be lower in the list.
2017-06-13 17:52:06 +02:00
Henrik Lissner
1678bf8382 tools/password-store: version check + refactor 2017-06-13 11:04:18 +02:00
Henrik Lissner
154e739c2c Merge pull request #108 from Luladjiev/upstream
Ignore only root init.el
2017-06-13 11:03:23 +02:00
Peter Luladjiev
f1f86b93ca Ignore only root init.el 2017-06-13 11:38:02 +03:00
Henrik Lissner
81f475da64
Fix mapcar used for effect 2017-06-12 19:07:40 +02:00
Henrik Lissner
146de3e618
tools/password-store: add auth-password-store package decl 2017-06-12 18:58:31 +02:00
Henrik Lissner
3031212a76
If an init-hook dies in the forest, does it make a sound? 2017-06-12 15:15:39 +02:00
Henrik Lissner
042da73d5d
Initialize doom-init-time a little sooner (#106) 2017-06-12 15:13:30 +02:00
Henrik Lissner
709d6c4676
bin/doctor: add current commit SHA 2017-06-12 14:56:47 +02:00
Henrik Lissner
01dc170e5b
app/irc: clean up timer & notifications on quit 2017-06-12 14:37:14 +02:00
Henrik Lissner
7f76dabfd0
Use 'special' modeline in circe-mode (#103) 2017-06-12 14:31:41 +02:00
Henrik Lissner
571b5c55d8
Add buffer-info-simple modeline segment 2017-06-12 14:31:12 +02:00
Henrik Lissner
d9d049549f
By default, empty buffer-file-name = unreal buffer 2017-06-12 14:28:59 +02:00
Henrik Lissner
b3dafe96d3
app/irc: general rewrite (#103)
+ Refactor initialization process.
+ Refactor for consistency.
+ Add +irc-defer-notifications (for ZNC users).
+ Rewrote =irc (opens separate workspace + auto-connects to registered
  networks).
+ Add +irc/connect (connect to specific network).
+ Add +irc/quit (kill whole circe session).
+ Add +irc/ivy-jump-to-channel command.
+ Rewrite README.
+ Silence QUIT/PART default messages; they're cute, but no thanks.
+ Truncate nicks non-destructively.
+ Jump to prompt when entering insert mode (with evil).
+ Activate solaire-mde in channel buffers to visually distinguish them
  from server buffers.
2017-06-12 14:22:35 +02:00
Henrik Lissner
07299c5020
core-lib: add doom-quote & doom-enlist 2017-06-12 02:48:26 +02:00
Henrik Lissner
3f5c828169
Add :tools password-store to init.test.el 2017-06-12 02:45:53 +02:00
Henrik Lissner
ca07eb5077
Add +pass-get-user & +pass-get-secret (#103) 2017-06-12 02:43:35 +02:00
Henrik Lissner
febd14a9f2
Add tools/password-store unit test (#103) 2017-06-12 02:40:14 +02:00
Henrik Lissner
77298f3672
+pass/ivy: fix open-url; add +pass-get-field (#103) 2017-06-12 02:39:25 +02:00
Henrik Lissner
8c3cf83c6c
Update changelog 2017-06-12 01:43:06 +02:00
Henrik Lissner
37012b86ca
+pass/ivy: add get-field action (#103) 2017-06-12 01:43:02 +02:00
Henrik Lissner
2f3f966990
+pass/ivy: remove test data (#103) 2017-06-12 01:42:53 +02:00
Henrik Lissner
e5a04e512f
core-ui: refactor echo-keystrokes hooks 2017-06-12 01:41:55 +02:00
Henrik Lissner
38f9e4b0a6
Fix delete-frame => doom/delete-frame remap 2017-06-12 01:41:54 +02:00
Henrik Lissner
2d219c24eb
Fix ui/doom-quit for new quit-confirm system 2017-06-12 01:41:54 +02:00
Henrik Lissner
4984a548d1
Refactor DOOM init & add new init hooks
+ Add doom-init-hook and doom-post-init-hook to simplify Emacs init
  hooks into less ambiguous ones.
+ Attach former after-init-hook and emacs-startup-hook hooks to new doom
  init hooks.
+ Vastly improves daemon and tty support: preventing incorrect colors
  from bleeding across face class barriers, and into GUI Emacs and vice
  versa, when spawned with emacsclient.
+ Fix persp-mode breaking Emacs daemon, and ensuring that initialization
  is done properly in terminal Emacs (and emacsclient frames).
2017-06-12 00:37:14 +02:00
Henrik Lissner
d3054f4679
Load core-lib a little sooner 2017-06-11 23:52:56 +02:00
Henrik Lissner
d5652d2779
Change what recentf ignores; add doom-host-dir var 2017-06-11 23:50:50 +02:00
Henrik Lissner
10eef78d43
Changelog: add missing attribution 2017-06-11 20:48:48 +02:00
Henrik Lissner
470117d538
app/irc: fix lui-mode-map typo 2017-06-11 19:33:40 +02:00
Henrik Lissner
0047baf15c
tools/password-store: improve ivy support (#103)
+ Removed +pass/find & +pass/browse.
+ Added +pass/open (delegates to +pass/ivy, helm-pass or pass, depending).
+ Added +pass/ivy with copy password/username, open url and edit entry
  actions.
2017-06-11 18:02:47 +02:00
Henrik Lissner
20cd13c572
tools/password-store: add helm-pass support 2017-06-11 18:00:45 +02:00
Henrik Lissner
588858a21e
Rudimentary ivy support for pass (#103) 2017-06-11 16:49:33 +02:00
Henrik Lissner
2b3311faa2
tools/password-store: refactor 2017-06-11 16:49:33 +02:00
Henrik Lissner
66cfbb2563
Fix quit confirmations in daemon; add for frames
+ Add quit confirmation when closing a frame with real buffers
+ Ensure quit confirmations also work in daemon frames (tty or gui)
2017-06-11 16:24:49 +02:00
Henrik Lissner
d8c7ce8c4e
Update changelog 2017-06-11 16:16:54 +02:00
Henrik Lissner
d2b514e1ba
Consistency refactor
For consistency with other app modules:

+ Refactor out s.el dependency
+ Reorder variables (public then private)
+ Use add-hook! instead of add-hook+lambda
+ Optimization: replace mapcar+closure with cl-loop (reduces allocations)
+ Replace evil-set-initial-state with (set! :evil-state ...), which is
  ignored if :feature evil is disabled.
2017-06-11 16:15:36 +02:00
Henrik Lissner
128fe0466c
Uncomment :app irc in init.example.el 2017-06-11 15:57:44 +02:00
Benjamin Andresen
d73da8f995 clean ups (init.exampl.el + app/irc readme) 2017-06-11 15:56:55 +02:00