Org Mode fixes for refile on windows breaking newlines
This commit is contained in:
@@ -11,3 +11,8 @@ vim.keymap.set(
|
||||
desc = 'ORG: meta return'
|
||||
}
|
||||
)
|
||||
|
||||
-- Force LF line endings for Org files (fixes capture/refile newline duplication on Windows)
|
||||
if vim.fn.has("win32") == 1 or vim.fn.has("win64") == 1 then
|
||||
vim.opt_local.fileformat = "unix"
|
||||
end
|
||||
|
||||
@@ -14,7 +14,7 @@ sl_opt = {
|
||||
org_base_folder = ORG_BASE_FOLDER,
|
||||
org_agenda_files = ORG_BASE_FOLDER .. '/*.org',
|
||||
org_default_notes_file = ORG_BASE_FOLDER .. '/refile.org',
|
||||
org_archive_location = ORG_BASE_FOLDER .. '/.archive.org',
|
||||
org_archive_location = ORG_BASE_FOLDER .. '/archive.org',
|
||||
org_roam_folder = ORG_BASE_FOLDER .. '/roam',
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user