(require 'dash)

(defun my-load-all ()
  (interactive)
  (let ((default-directory "~/my/dotfiles/emacs/emacs.d")
        (my-files
         (list "my-fns"
               "my-env"
               "my-keys"
               "my-view"
               "my-sublime"
               "my-shell"
               "my-occur"
               "my-isearch"
               "my-help"
               "my-dired"
               "my-org-activity-log"
               "my-update-dot-emacs"
               ))
        (my-non-packages
         ;; Files that aren't on MELPA or any other
         ;; package archive.
         (directory-files "~/.emacs.d/third-party" 'full "\\.el$" t))
        (my-private "~/.emacs.private.el"))

    (my-load (if window-system "my-gui" "my-terminal"))

    (mapc 'my-load my-non-packages)
    ;; Load all my files: main reason to load this
    ;; before package customizations: they might
    ;; depend on functions in my-fns.el (and other
    ;; dependencies like that).
    (mapc 'my-load my-files)

    (dolist (package my-packages)
      (my-load (format "my-%s.el" package) 'ignore-if-missing))
    (my-load my-private 'ignore-if-missing)))

(my-load-all)
(recentf-open-files)

(require 'dash)

(defun my-load-all ()
  (interactive)
  (let ((default-directory "~/my/dotfiles/emacs/emacs.d")
        (my-files
         (list "my-fns"
               "my-env"
               "my-keys"
               "my-view"
               "my-sublime"
               "my-shell"
               "my-occur"
               "my-isearch"
               "my-help"
               "my-dired"
               "my-org-activity-log"
               "my-update-dot-emacs"
               ))
        (my-non-packages
         ;; Files that aren't on MELPA or any other
         ;; package archive.
         (directory-files "~/.emacs.d/third-party" 'full "\\.el$" t))
        (my-private "~/.emacs.private.el"))

    (my-load (if window-system "my-gui" "my-terminal"))

    (mapc 'my-load my-non-packages)
    ;; Load all my files: main reason to load this
    ;; before package customizations: they might
    ;; depend on functions in my-fns.el (and other
    ;; dependencies like that).
    (mapc 'my-load my-files)

    (dolist (package my-packages)
      (my-load (format "my-%s.el" package) 'ignore-if-missing))
    (my-load my-private 'ignore-if-missing)))

(my-load-all)

(unless window-system
  (recentf-open-files))

Disable recentf menu for window system
Disable recentf menu for window system

sri/dotfiles,sri/dotfiles,sri/dotfiles