aboutsummaryrefslogtreecommitdiff
path: root/core/ext/key_commands.lua
diff options
context:
space:
mode:
Diffstat (limited to 'core/ext/key_commands.lua')
-rw-r--r--core/ext/key_commands.lua7
1 files changed, 1 insertions, 6 deletions
diff --git a/core/ext/key_commands.lua b/core/ext/key_commands.lua
index f318c08d..70357a5a 100644
--- a/core/ext/key_commands.lua
+++ b/core/ext/key_commands.lua
@@ -462,12 +462,7 @@ else
keys.cad = { 'del_word_right', b }
end
--- Load user key commands.
-local lfs = require 'lfs'
-if lfs.attributes(_USERHOME..'/key_commands.lua') then
- local ret, errmsg = pcall(dofile, _USERHOME..'/key_commands.lua')
- if not ret then textadept.print(errmsg) end
-end
+textadept.user_dofile('key_commands.lua') -- load user key commands
---
-- This module has no functions.