Commit Graph

237 Commits

Author SHA1 Message Date
Henrik Lissner
00a9a08afb
Automatically add execute permission to files with a shebang line 2018-03-12 13:32:02 -04:00
Henrik Lissner
5726da8be2
Fix unbalanced-parenthesis error in some helpful-variable buffers 2018-03-12 13:32:00 -04:00
Henrik Lissner
11e5140b98
Fix editorconfig file ext 'guesser' in org-edit-src buffers
Fixes editorconfig not correctly guessing style settings in org-edit-src
buffers.
2018-02-13 19:42:39 -05:00
Henrik Lissner
bae2287d51
Recenter screen after save-place successfully loads point 2018-02-02 20:47:32 -05:00
Henrik Lissner
03a03853e4
core-editor: reset expand-region on doom/escape #317 2018-02-01 19:58:44 -05:00
Henrik Lissner
c5b72566ea
Remove help-fns+, add helpful plugin #363 2018-01-21 21:37:15 -05:00
Henrik Lissner
45c2221316
General update for docstrings and comments & minor refactor 2018-01-15 00:43:28 -05:00
Henrik Lissner
5ee50c6b53
Move wgrep config from core-editor to completion/{ivy,helm} 2018-01-14 02:04:34 -05:00
Henrik Lissner
25619908a2
Narrow down the purpose of init & post-init hooks
Essential hooks should be added to doom-init-hook. Non-essential and
extra hooks should be added to doom-psot-init-hook.
2018-01-07 00:15:58 -05:00
Henrik Lissner
392f04446f
General refactor (use map.el more)
+ map-delete is shorter and faster than assq-delete-all
+ map-put is simpler than the delete-then-set workflow
+ map-merge is great for merging default and user settings
2018-01-07 00:15:58 -05:00
Henrik Lissner
69385fac1a
Major rewrite of core-ui
Phases out dependence on the doom-kill-buffer workflow, which ensured
the user would always land on a real buffer (or the fallback buffer)
after killing a buffer. This required all quit-window, kill-this-buffer
and various buffer-killing commands be advised or remapped. There was no
need, kill-buffer-query-functions is better.

Also introduces a new hook: doom-init-theme-hook. doom-init-ui-hook
still exists, but is used for UI initialization (surprise), while theme
hooks should be moved over.
2018-01-04 03:01:35 -05:00
Henrik Lissner
92e52fafd1
Fix expand-region misplacing cursor on cancel/C-g #317 2018-01-02 13:50:43 -05:00
Henrik Lissner
fd11f958f9
Move doom*quit-window to core-editor 2018-01-01 16:30:22 -05:00
Henrik Lissner
eef6ed3d11
Minor, general refactor & comment updates 2018-01-01 13:21:52 -05:00
Henrik Lissner
8b1f8acc0d
Rearrange core config, epa & authinfo bits (fix after! error) 2017-12-27 22:48:05 -05:00
Henrik Lissner
f9e5ef2b51
Fix recentf not excluding doom-local-dir 2017-12-23 16:15:29 -05:00
Henrik Lissner
9d661ff71e
Move ac-php-tags-path & recentf-save-file to doom-cache-dir 2017-12-23 14:30:36 -05:00
Henrik Lissner
883c12f860
recentf: use file-truename on all entries + update recentf-exclude 2017-12-22 16:26:08 -05:00
Henrik Lissner
e168118243
Revert a8f4d85d; back to help-fns+
Helpful, while sometime useful, tended to be slow when invoked.
2017-12-10 11:49:02 -05:00
Henrik Lissner
a8f4d85da3
core-editor: remove help-fns+ & add helpful 2017-12-09 16:21:42 -05:00
Henrik Lissner
2ef38b73a7
Remove doom*delete-trailing-whitespace advice (unneeded) 2017-12-08 23:14:12 -05:00
Henrik Lissner
f8e8dbad8f
General minor refactor 2017-12-08 23:14:12 -05:00
Henrik Lissner
f063a08891
Remove :editorconfig setting 2017-12-08 23:14:11 -05:00
Henrik Lissner
9d81bc5a8b
Major refactor: use-package-always-defer = nil & use :hook
Possibly breaking change: packages are no longer deferred by default.

Addresses #286
2017-12-08 23:14:11 -05:00
Henrik Lissner
9408062f60
Move some plugins' storage to doom-etc-dir 2017-11-05 01:16:36 +01:00
Henrik Lissner
611d8fe6bc
core-editor: minor refactor; associate LICENSE w/ text-mode 2017-10-23 20:08:18 +02:00
Henrik Lissner
e319a5eaa1 Merge branch 'UndeadKernel-window_select' into develop
* UndeadKernel-window_select:
  Module to visually select windows with either ace-window or switch-window
2017-10-18 17:01:20 +02:00
Henrik Lissner
9d1d0974d5
Fix editorconfig in (most) extension-less files 2017-10-18 16:52:00 +02:00
Undead Kernel
f9321b1b3b Module to visually select windows with either ace-window or switch-window
Modularize ace-window and add switch-window as a replacement: Issue #218
2017-10-08 23:34:25 +02:00
Henrik Lissner
259503bb75
Separate editorconfig-conf-mode config 2017-10-02 19:57:46 +02:00
Henrik Lissner
47b6465bc3
Remove abbreviate-file-name from recentf-filename-handlers #86 2017-09-25 23:24:21 +02:00
Henrik Lissner
68aeaebff4
Move imenu plugins from core to tools/imenu 2017-09-24 17:10:47 +02:00
Pigeon F
673b466285 Fix spelling mistake: 'hisstory' => 'history'
Emacs will happily assign a value to a not yet existent variable,
which is why this fails silently.
2017-09-13 15:24:37 +02:00
Henrik Lissner
bb5907cadb
Rethink smartparens config #181
+ Parts of my smartparens config that were personal preference have been
  moved to my private module.
+ The css-mode config was redundant and was removed
+ Moved lang-specific config to their respective modules
+ Markdown config was redundant with native electric support, and thus
  removed.
2017-09-02 16:11:21 +02:00
Henrik Lissner
dd947b5eae
Refactor core-editor 2017-07-26 18:49:14 +02:00
Henrik Lissner
f93fb61f33
Refactor core.el
+ Load Doom core in doom! macro
+ Move automatic minor modes to core-editor
+ Move doom*set-indirect-buffer-filename to core-editor
2017-07-13 00:05:30 +02:00
Henrik Lissner
e906b20400
Revert 8edba655: disable undo persistence
It doesn't fix the undo corruption bug.
2017-07-11 00:40:29 +02:00
Henrik Lissner
8edba65504
Possibly restore undo persistence 2017-07-05 18:18:24 +02:00
Henrik Lissner
e3eadf596d Disable persistent-undo; causes undo corruption
A known issue with undo-tree causes an "unrecognized entry in undo list
undo-tree-canary" error, which can result in the loss of work.
2017-06-24 02:25:15 +02:00
Henrik Lissner
8f00b3d07a
Minor general refactor 2017-06-20 16:32:50 +02:00
Henrik Lissner
3762d877b1
Appease almighty byte-compiler sama 2017-06-19 12:41:30 +02:00
Henrik Lissner
928812da8a
Make def-setting! behave more like defmacro
set! used to aggressively evaluate its arguments (at expansion-time),
even if placed inside an after! block. This causes unavoidable errors if
those arguments use functions/variables that don't exist yet.

Fixes #112
2017-06-19 00:32:44 +02:00
Henrik Lissner
4eb2a7cb41
General refactor + cleanup 2017-06-16 02:10:33 +02:00
Henrik Lissner
3d6bd3f3f0
Improve whitespace-mode config 2017-06-15 14:45:32 +02:00
Henrik Lissner
853ad98ae9
Fix editorconfig indent-policing in Lisp modes
Editorconfig in Lisp enforces lisp-indent-offset too strictly, ruining
its adaptive indentation. We don't want to disable it complete in those
modes however. In all other respects (controlling spaces vs tabs,
charset, max_line_length, etc) editorconfig is great.
2017-06-15 14:45:32 +02:00
Henrik Lissner
cf7779138a
Fix editorconfig-conf-mode 2017-06-15 14:24:18 +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
d5652d2779
Change what recentf ignores; add doom-host-dir var 2017-06-11 23:50:50 +02:00
Henrik Lissner
5f65855f13
Remove goto-last-change
This plugin conflicts with goto-chg dependency in Evil.
2017-06-10 22:58:35 +02:00
Henrik Lissner
c7254e7bdc
Major optimization refactor, across the board
+ enable lexical-scope everywhere (lexical-binding = t): ~5-10% faster
  startup; ~5-20% general boost
+ reduce consing, function calls & garbage collection by preferring
  cl-loop & dolist over lambda closures (for mapc[ar], add-hook, and
  various cl-lib filter/map/reduce functions) -- where possible
+ prefer functions with dedicated opcodes, like assq (see byte-defop's
  in bytecomp.el for more)
+ prefer pcase & cond (faster) over cl-case
+ general refactor for code readability
+ ensure naming & style conventions are adhered to
+ appease byte-compiler by marking unused variables with underscore
+ defer minor mode activation to after-init, emacs-startup or
  window-setup hooks; a customization opportunity for users + ensures
  custom functionality won't interfere with startup.
2017-06-09 00:47:45 +02:00