added stuff

This commit is contained in:
9ahmed 2021-04-17 02:28:10 +05:00
parent dc714f4f46
commit 65073548fb
2 changed files with 46 additions and 51 deletions

View File

@ -1,5 +0,0 @@
;;;; Emacs Bookmark Format Version 1;;;; -*- coding: utf-8-emacs; mode: lisp-data -*-
;;; This format is meant to be slightly human-readable;
;;; nevertheless, you probably don't want to edit it.
;;; -*- End Of Bookmark File Format Version Stamp -*-
()

92
init.el
View File

@ -13,12 +13,12 @@
(require 'dashboard)
(use-package dashboard
:ensure t
:config
(dashboard-setup-startup-hook))
:ensure t
:config
(dashboard-setup-startup-hook))
;; Set the title
(setq dashboard-banner-logo-title "Welcome to Emacs Dashboard")
;; Set the banner
(setq dashboard-startup-banner 'logo)
;; Value can be
@ -148,22 +148,6 @@
(set-frame-parameter (selected-frame) 'alpha value))
(custom-set-variables
;; custom-set-variables was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
'(package-selected-packages
'(elpher evil-mu4e exwm org-inline-pdf mu4e evil-magit magit general workgroups2 ERC dashboard doom-themes counsel ivy-rich which-key rainbow-delimiters doom-modeline use-package shrink-path ivy command-log-mode all-the-icons))
'(send-mail-function 'smtpmail-send-it)
'(smtpmail-smtp-server "disroot.org")
'(smtpmail-smtp-service 25))
(custom-set-faces
;; custom-set-faces was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
)
(use-package counsel
:bind (("M-x" . counsel-M-x)
@ -174,18 +158,7 @@
(require 'mu4e)
(setq user-full-name "Syed Ahmed")
(setq user-mail-address "9ahmed@disroot.org")
(setq mu4e-get-mail-command "mbsync -a")
(require 'mu4e)
(setq user-full-name "Syed Ahmed")
(setq user-mail-address "syedahmed@riseup.net")
(setq mu4e-get-mail-command "mbsync -a")
(require 'erc)
@ -208,6 +181,11 @@
:full-name "Am")))
(use-package mu4e
:ensure nil
:config
@ -220,31 +198,49 @@
(setq mu4e-get-mail-command "mbsync -a")
(setq mu4e-maildir "~/Mail")
;; Make sure plain text mails flow correctly for recipients
(setq mu4e-compose-format-flowed t)
;; Configure the function to use for sending mail
(setq message-send-mail-function 'smtpmail-send-it)
;; NOTE: Only use this if you have set up a GPG key!
;; Automatically sign all outgoing mails
;; (add-hook 'message-send-hook 'mml-secure-message-sign-pgpmime)
(setq mu4e-contexts
(list
;; Work account
(make-mu4e-context
(list
;; Work account
(make-mu4e-context
:name "Work"
:match-func
(lambda (msg)
(lambda (msg)
(when msg
(string-prefix-p "/Riseup" (mu4e-message-field msg :maildir))))
(string-prefix-p "/Riseup" (mu4e-message-field msg :maildir))))
:vars '((user-mail-address . "syedahmed@riseup.net")
(user-full-name . "Syed Ahmed")
(user-full-name . "Syed Ahmed Hussain")
(smtpmail-smtp-server . "mail.riseup.net")
(smtpmail-smtp-service . 465)
(smtpmail-stream-type . tls)
(mu4e-compose-signature . "Ahmed via Emacs")
(mu4e-drafts-folder . "/Riseup/[Riseup]/Drafts")
(mu4e-sent-folder . "/Riseup/[Riseup]/Sent Mail")
(mu4e-refile-folder . "/Riseup/[Riseup]/All Mail")
(mu4e-trash-folder . "/Riseup/[Riseup]/Trash")))
;; Personal account
(make-mu4e-context
;; Personal account
(make-mu4e-context
:name "Personal"
:match-func
(lambda (msg)
(lambda (msg)
(when msg
(string-prefix-p "/Disroot" (mu4e-message-field msg :maildir))))
(string-prefix-p "/Disroot" (mu4e-message-field msg :maildir))))
:vars '((user-mail-address . "9ahmed@disroot.org")
(user-full-name . "Syed Ahmed")
(user-full-name . "ahmd")
(smtpmail-smtp-server . "disroot.org")
(smtpmail-smtp-service . 465)
(smtpmail-stream-type . ssl)
(mu4e-compose-signature . "ahmd via Emacs")
(mu4e-drafts-folder . "/Disroot/Drafts")
(mu4e-sent-folder . "/Disroot/Sent")
(mu4e-refile-folder . "/Disroot/Archive")
@ -252,7 +248,11 @@
(setq mu4e-maildir-shortcuts
'(("/Inbox" . ?i)
("/Riseup/[Riseup]/Sent Mail" . ?s)
("/Riseup/[Riseup]/Trash" . ?t)
("/Riseup/[Riseup]/Drafts" . ?d)
("/Riseup/[Riseup]/All Mail" . ?a))))
("/[Riseup]/Sent Mail" . ?s)
("/[Riseup]/Trash" . ?t)
("/[Riseup]/Drafts" . ?d)
("/[Riseup]/All Mail" . ?a))))