diff options
author | John Turner <jturner.usa@gmail.com> | 2022-07-03 23:20:44 -0400 |
---|---|---|
committer | John Turner <jturner.usa@gmail.com> | 2022-07-03 23:20:44 -0400 |
commit | c284f5b2c4e4ed72a2a060cb91353408f5a2b416 (patch) | |
tree | 9902357b42b23071df6b6aa2668aac14e805f6be /config/programming-languages | |
parent | 250b3ef0d5c3cbc39129ce632838994a17f57fa2 (diff) | |
download | emacs.d-c284f5b2c4e4ed72a2a060cb91353408f5a2b416.tar.gz |
moved non-config functions into a new lisp directory
We will now put non-config related functions (any elisp libraries or
snippets that I write) into a new ".emacs.d/lisp" directory and separate them from
the config code in the ".emacs.d/config" directory.
During the transition I decided to move and rewrite the logic that
adds all of the libraries to load-path. Now this logic is in two top
level files (load-config.el load-local-lisp.el). I needed to remove
the config-programming-languages module because it conflicted with the
new load-path logic (it was mostly useless anyways).
The man advice functions are deleted in this commit but they will be
added into the new ".emacs.d/lisp" directory soon.
Diffstat (limited to 'config/programming-languages')
4 files changed, 0 insertions, 26 deletions
diff --git a/config/programming-languages/c/config-c-functions.el b/config/programming-languages/c/config-c-functions.el deleted file mode 100644 index b60d38c..0000000 --- a/config/programming-languages/c/config-c-functions.el +++ /dev/null @@ -1,4 +0,0 @@ -(defun config-c-mode-insert-header-guard () - (interactive) - (let ((guard (upcase (format "%s_H" (file-name-base (buffer-file-name)))))) - (insert (format "#ifndef %s\n#define %s\n#endif" guard guard)))) diff --git a/config/programming-languages/c/config-c.el b/config/programming-languages/c/config-c.el deleted file mode 100644 index 3cb6a32..0000000 --- a/config/programming-languages/c/config-c.el +++ /dev/null @@ -1,5 +0,0 @@ -(setq c-default-style "stroustrup" c-basic-offset 4) - -(load "config-c-functions") - -(provide 'config-c) diff --git a/config/programming-languages/config-programming-languages.el b/config/programming-languages/config-programming-languages.el deleted file mode 100644 index 3976cce..0000000 --- a/config/programming-languages/config-programming-languages.el +++ /dev/null @@ -1,14 +0,0 @@ -(defvar config-programming-languages-directory (file-name-directory - (locate-library "config-programming-languages"))) - -(defvar config-programming-languages-modules '(c shell)) - -(mapc (lambda (module) - (let ((module-load-path (file-name-concat config-programming-languages-directory (symbol-name module)))) - (add-to-list 'load-path module-load-path))) - config-programming-languages-modules) - -(require 'config-c) -(require 'config-shell) - -(provide 'config-programming-languages) diff --git a/config/programming-languages/shell/config-shell.el b/config/programming-languages/shell/config-shell.el deleted file mode 100644 index 0c1e82c..0000000 --- a/config/programming-languages/shell/config-shell.el +++ /dev/null @@ -1,3 +0,0 @@ -(setq sh-shell-file "/bin/bash") - -(provide 'config-shell) |